void () { doTest(InspectionGadgetsBundle.message("if.may.be.conditional.quickfix"), """ class X { boolean test(int x, int y, int z) { return (x > y && z == 1) || /**/(x <= y && z == 2); } }""", """ class X { boolean test(int x, int y, int z) { return x > y ? z == 1 : z == 2; } }"""); }