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