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