Perform these general steps:
- In the Inspection tool window, select the inspection item you are interested in.
- If IntelliJ IDEA suggests some ways to resolve the problem, select one of the possible fixes below the
Problem resolution field in the right pane of the tool window
or click the Apply a Quickfix toolbar button
,
then select the desired fix from the context menu.

Click image to close this popup
Click thumbnail to view larger image. - If no resolutions are suggested, select the inspection item in question and choose on the context menu of the selection and fix the problem manually.

