How to ban classes?

I love catching problems at compile time. This week I came across an odd situation. I need to make sure nobody was using javax.ws.rs. »