void (@NotNull PsiElement element) { if (myRefCountHolder != null && myFile instanceof ServerPageFile) { // in JSP, XmlAttributeValue may contain java references try { for (PsiReference reference : element.getReferences()) { JavaResolveResult result = resolveJavaReference(reference); if (result != null) { myRefCountHolder.registerReference(reference, result); } } } catch (IndexNotReadyException ignored) { } } if (!(myFile instanceof ServerPageFile)) { add(DefaultHighlightUtil.checkUnicodeBadCharacter(element)); } }