I ran into a method today that is .. not used anywhere .. but is tested. Since it is used by a test, IntelliJ did not flag the method as ‘unused’.
Does IntelliJ allow for the following search condition “Find methods that are unused with the exception of tests, where test is defined as anything with @Test annotation”
There is a related feature request:
While the first point is already covered by the Configure annotations… option in the inspection settings, the second point is still valid: