void (RegExpCharRange range) { final RegExpChar from = range.getFrom(); final PsiElement hyphen = from.getNextSibling(); myHolder.newSilentAnnotation(HighlightInfoType.SYMBOL_TYPE_SEVERITY).range(hyphen).textAttributes(RegExpHighlighter.META).create(); final RegExpChar to = range.getTo(); if (to == null) { return; } final int fromCodePoint = from.getValue(); final int toCodePoint = to.getValue(); if (fromCodePoint == -1 || toCodePoint == -1) { return; } if (toCodePoint < fromCodePoint) { myHolder.newAnnotation(HighlightSeverity.ERROR, RegExpBundle.message("error.illegal.character.range.to.from")).range(range).create(); } }