Link directly to Inspections from Indicator bar
I like the inspections, but some of them are distracting and not useful to me. To turn them off, I have to bring up the Inspections pane and search for the one I want to turn off among the hundreds of them. It is not obvious under which heading a particular Inspection resides.
Is there a way to link directly to the Inspection that is the source of the indicator bar? So I could, say, right-click on the indicator bar and bring up the Inspections pane opened to the selected inspection.
For example, I have a bunch of methods that have the warning: Method foo() is never used.
This is legacy Java code which I am maintaining and those methods are called through reflection so the yellow warning is so ubiquitous that it hides other warnings I am interested in.
Searching in the Inspections pane for "is never used" does not find the particular inspection I am looking for. Searching for "Method" returns hundreds, which is not much better than wandering about looking, and I couldn't find it in that list either. Once I find it, I can then adjust its severity to my liking. But I can't find it.
Please sign in to leave a comment.
Hello Alex,
It's possible to put caret on method name, press Alt+Enter and press right arrow on "Safe delete..." suggestion to open inspection settings:
Thank you. This is exactly what I was looking for. Mark this as the correct answer. I have updated my inspection profile.
Note that I don't get that "Safe delete" option all of the time, sometimes it is a "generate test cases" option, which doesn't have the sublink to the Edit inspection . I guess I am clicking in the wrong place or in the wrong order.