I have a public Java class that is used via reflection and IntelliJ 2016.1 rightly reports it as unused declaration. I can annotate the class with @SuppressWarnings("unused") but I noticed that this also silences warning about unused private method inside this class. I do not want to add this class as entry point as there are many classes like this. Is there any other option besides adding a main method?
Kind regards, Jan