Running Inspection by Name
Running a single inspection is useful in case you want to track a specific problem. If you find a warning in a file, you can inspect your entire project, or the necessary scope of files, to ensure that there are no more such warnings in your code base.
From the main menu, select(Ctrl+Shift+Alt+I).
Type the inspection name in the popup. The suggestion list will show you inspections that match your search request.
If you are not sure that you are selecting the correct inspection, you can view its description. To do so, select an inspection in the popup and press Ctrl+Q.
Double-click the necessary inspection to open its settings.
In the dialog that opens, select the scope of files that you want to analyze.
The File Masks(s) option helps you narrow down the number of files that will be inspected.
Select the checkbox and specify a pattern of characters and wildcards that matches names of files you want to analyse. Use comma to separate multiple file masks.
Some inspections might have additional options that you will be prompted to configure.
These settings will be applied only to this inspection run. In your current profile, configuration of this inspection won't change.
The IDE will show you the inspection results in a tool window. There you can examine and fix detected problems.