Code Inspection: Unused declaration
Configure inspections: Settings | Editor | Inspections
Show intention actions: AltEnter
Reports the classes, methods, functions, constants, or properties that are not used or not reachable from entry points. It also reports all method implementations/overriders.
Some unused members might not be reported in the code editor on the fly. Due to performance reasons, a non-private member is checked only when its name rarely occurs in the project.
To see all results, run the inspection in batch mode by using Code | Inspect Code... or Code | Run Inspection by Name....
Place the caret at the highlighted line and press AltEnter or click
.
Click the arrow next to the inspection you want to suppress and select the necessary suppress action.