void (RegExpNamedCharacter namedCharacter) { if (!myLanguageHosts.supportsNamedCharacters(namedCharacter)) { myHolder.newAnnotation(HighlightSeverity.ERROR, RegExpBundle.message("error.named.unicode.characters.are.not.allowed.in.this.regex.dialect")).create(); } else if (!myLanguageHosts.isValidNamedCharacter(namedCharacter)) { final ASTNode node = namedCharacter.getNameNode(); if (node != null) { myHolder.newAnnotation(HighlightSeverity.ERROR, RegExpBundle.message("error.unknown.character.name")).range(node) .highlightType(ProblemHighlightType.LIKE_UNKNOWN_SYMBOL).create(); } } }