Conditional can be pushed inside branch expression
Reports conditional expressions with
else branches that are similar enough so that the expression can be moved inside. This action shortens the code.
After the quick-fix is applied:
New in 2017.2
Ignore when conditional will be only argument of a method call
IntelliJ IDEA 2023.3, Qodana for JVM 2023.3