Is there a tool for analysing the Access Level of Java classes and methods?
<p>In the Java code for our application I'm pretty sure there are lots of classes and methods which have <code>public</code> access but probably only need package level access.</p>

<p>What I'd like to do is to tidy up our code on a package by package level, making only things that really need to visible outside each package <code>public</code> as this should simplify other refactoring that I want to do.</p>

<p>I was wondering if there was a tool available that could help me with this.  Ideally it would analyse all the code and produce a report saying which classes and method had public access but are only called from within the same package.</p>

<p>The <em>Find Usages</em> option in Netbeans can help me with this, but running it by hand for every class and method and analysing the output line by line will take forever.</p>
