Would be great if NetBeans had a plugin like this:
In short, it analyzes clusters of types and their relations, and suggests what is probably not needed - because the cluster is e.g. not used anywhere, or only used in tests, etc. It also gives advices on what method is public but is only used inside a class, etc.
There are some discussions on this:
Isn't it a duplicate of https://netbeans.org/bugzilla/show_bug.cgi?id=181458 ?
duplicate of https://netbeans.org/bugzilla/show_bug.cgi?id=181458 ?
*** This bug has been marked as a duplicate of bug 181458 ***