IDEADEV-40503 ("​replace switch with if" makes code uncompilable)