void () { doTest(InspectionGadgetsBundle.message("if.may.be.conditional.quickfix"), "class X {" + " boolean b = true;" + " void test(boolean foo) {" + " boolean c = b && foo ||/**/ !b && complex();" + " }" + " boolean complex() {" + " b = !b;" + " return true;" + " }" + "}", "class X {" + " boolean b = true;" + " void test(boolean foo) {" + " boolean c = b ? foo : complex();" + " }" + " boolean complex() {" + " b = !b;" + " return true;" + " }" + "}"); }