I'm writing a simple custom inspection tool using BaseJavaLocalInspectionTool for the basis.
So far all is well, I create a JavaElementVisitor and register problems as required, but what I've been struggling
with is this:
We want to disable unused method warning when we know that this method will be called via reflection.
In fact I even have annotation in the same class that holds method name.
What would be the right way to suppress default inspection or do some other trick to make it happen?
I can't figure out what to do to PsiMethod, nothing I tried so far worked :(