How do I find unused Java classes and JSP files from a project?
I am using Eclipse and Mercurial as the source control system.
It could be approached for an unused class in projects. See how Eclipse marks the Eclipse unused classes as yellow. As it is open source, it is easily available.
I believe CodePro will do what you want.
Also a quick way of identifying this if only on a few files is right click the file and select 'References' then workspace or project.
ProGuard will do this as part of its "listing dead code" feature. The examples page shows you exactly how to do it.