java – How to get rid of dependency gradually?

I want to get rid of dependency in my project.
I’m unable to change the code of this dependency, otherwise I would deprecate its classes with annotations to make them avoidable during compilation.

Is there a way to forbid using extra classes from this dependency, and track those which are used currently (alike @Deperecated) in order to remove them gradually later?