I've been wondering if there exists a java tool that would let me graph classloading, so that I can track stuff like "this class is being used only through this library" and that might even be able to give me what-if analysis of what would happen if I replaced that specific dependency with another alternative. I am thinking about the run-time class loading here, not really static analysis.
I am assuming some kind of instrumentation of the linking phase of classloading, not even sure it's possible... ? (I know this is slightly off-topic, but it would certainly be applicable to making some plugins faster) Kristian