void () { doMemberTest(InspectionGadgetsBundle.message("if.may.be.factorized.quickfix"), """ char test(boolean duplicateExpression, boolean thenExpression, boolean elseExpression) { if ((duplicateExpression &&/**/ thenExpression) || (duplicateExpression && elseExpression)) { return 'a'; } else { return 'b'; } }""", """ char test(boolean duplicateExpression, boolean thenExpression, boolean elseExpression) { if (duplicateExpression && (thenExpression || elseExpression)) { return 'a'; } else { return 'b'; } }""" ); }