Maximum 'switch' branches
switch statements or expressions with too many
Such a long switch statement may be confusing and should probably be refactored. Sometimes, it is not a problem (for example, a domain is very complicated and has enums with a lot of constants).
Use the Maximum number of branches field to specify the maximum number of
case labels expected.
Maximum number of branches
IntelliJ IDEA 2023.3, Qodana for JVM 2023.3