Boolean expression could be replaced with conditional expression
boolean expressions which can be formulated in a more compact and, arguably, clear way than by using a conditional expression.
Use the quick-fix to replace the
boolean expression by a conditional expression.
After the quick-fix is applied:
IntelliJ IDEA 2023.3, Qodana for JVM 2023.3