@Override
    public void visitReferenceElement(@NotNull PsiJavaCodeReferenceElement ref) {
      super.visitReferenceElement(ref);
      if (!(ref instanceof PsiImportStaticReferenceElement)) {
        JavaResolveResult result = HighlightVisitorImpl.resolveOptimised(ref, myFile);
        if (result != null) {
          registerReference(ref, result);
        }
      }
    }
@Override
    public void visitReferenceElement(@NotNull PsiJavaCodeReferenceElement ref)