void (RegExpQuantifier quantifier) { if (!quantifier.isCounted()) { return; } final RegExpNumber minElement = quantifier.getMin(); final String min = minElement == null ? "" : minElement.getText(); final RegExpNumber maxElement = quantifier.getMax(); final String max = maxElement == null ? "" : maxElement.getText(); if (!max.isEmpty() && max.equals(min)) { if ("1".equals(max)) { myHolder.registerProblem(quantifier, RegExpBundle.message("inspection.warning.can.be.removed"), new RegExpSimplifiableFix(quantifier.getText(), true)); } else { final ASTNode node = quantifier.getNode(); if (node.findChildByType(RegExpTT.COMMA) != null) { registerProblem(quantifier, "{" + max + "}"); } } } else if (("0".equals(min) || min.isEmpty()) && "1".equals(max)) { registerProblem(quantifier, "?"); } else if (("0".equals(min) || min.isEmpty()) && max.isEmpty()) { registerProblem(quantifier, "*"); } else if ("1".equals(min) && max.isEmpty()) { registerProblem(quantifier, "+"); } }