void () { final MyEnum x = MyEnum.Red; if((x == MyEnum.Red)) { // test comment System.out.println("1"); } else if((x == MyEnum.Blue) || x == MyEnum.Green) { System.out.println("2"); } else { System.out.println("3"); } }