void () { assertQuickfixNotAvailable(InspectionGadgetsBundle.message("if.may.be.factorized.quickfix"), """ class X { boolean elseExpression = true; boolean test(boolean thenExpression) { return activeMethod() && thenExpression ||/**/ activeMethod() && elseExpression; } boolean activeMethod() { elseExpression = !elseExpression; return true; } } """); }