Code Inspection: 'if' with common parts
if statements with duplicated common parts.
In the following example, both the
else branches of a conditional statement contain the common
exampleFunction() call. After the quick-fix is applied, the call is extracted from the conditional statement.
Suppress an inspection in the editor
Position the caret at the highlighted line and press Alt+Enter or click .
Click the arrow next to the inspection you want to suppress and select the necessary suppress action.