Remove Unnecessary Condition

Use quick intentions to remove redundant code

You can use ⌥⏎ (macOS), or Alt+Enter (Windows/Linux), to show context actions for redundant condition statements. You can then remove the redundant code.

Related Resources

Generate Code
Helps you to generate commonly used code constructs
Extract Variable
Extract code to a variable
Merge/Unmerge If Statements
Experiment with your code without changing the semantics