boolean (@NotNull String familyName) { return // if((a && b)) -- extract "a" doesn't work, seems legit, remove parentheses first familyName.equals("Extract 'if' condition") || // Cutting the message at different points is possible like // "Simplify 'foo || bar || baz || ...' to false" and "Simplify 'foo || (bar) || baz ...' to false" familyName.equals("Simplify boolean expression") || // A parenthesized enum switch case label is a compilation error familyName.equals("Create missing enum switch branches") || familyName.equals("Reformat the whole file") || familyName.equals("Fix whitespace") || // For some reason, these intentions cause many unstable results. familyName.equals("Put elements on multiple lines") || familyName.equals("Put elements on one line"); }