Code Inspection: Void function result used
Configure inspections: Settings | Editor | Inspections
Show intention actions: AltEnter
Reports the usages of a void
function's return value.
Since void
functions do not have a return value, such usages are most likely a programming mistake.
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.