module-info.java etc. It's also possible to configure custom entry points by name patterns or annotations.
Example:
public class Department {
private Organization myOrganization;
}
Here Department explicitly references Organization but if Department class itself is unused,
then inspection would report both classes.
The inspection also reports parameters which are not used by their methods and all method implementations/overriders, as well as local variables which are declared but not used.
NOTE: Some unused members might not be reported during in-editor highlighting. Due to performance reasons, a non-private member is checked only when it's name rarely occurs in the project. To see all results, please run the inspection using Analyze | Inspect Code... or Analyze | Run Inspection by Name...
Use visibility settings below to configure what members should be reported, e.g., configuring reportprivate methods only means
that public methods of private inner class would be reported but protected methods of top level class
would be ignored.
Use entry points tab to configure which entry points should be considered during inspection run.
You will also have a possibility to add entry points manually when inspection results are ready.
If your code uses unsupported framework and this framework: