void (RegExpClosure closure) { if (closure.getAtom() instanceof RegExpSetOptions) { final RegExpQuantifier quantifier = closure.getQuantifier(); myHolder.newAnnotation(HighlightSeverity.ERROR, RegExpBundle.message("error.dangling.metacharacter", quantifier.getUnescapedText())) .range(quantifier) .create(); } }