Code Inspection: Variable is assigned to itself
Configure inspections: Settings | Editor | Inspections
Show intention actions:
Reports an assignment in the form x = x
.
Place the caret at the highlighted line and press or click .
Click the arrow next to the inspection you want to suppress and select the necessary suppress action.