Remove Unnecessary Condition
Use quick intentions to remove redundant code so it's not cluttering up your codebase.
You can use ⌥⏎ (macOS) / Alt+Enter (Windows/Linux), to show context actions for redundant condition statements. You can then remove the redundant code.