'equals()' called on enum value
equals() calls on enum constants.
Such calls can be replaced by an identity comparison (
==) because two enum constants are equal only when they have the same identity.
A quick-fix is available to change the call to a comparison.
After the quick-fix is applied:
IntelliJ IDEA 2023.3, Qodana for JVM 2023.3