The IDE constantly analyzes your code, highlights any detected issues, and offers automatic fixes. To apply a fix for the issue at the caret, press &shortcut:ShowIntentionActions; and choose the quick-fix.