@Override public void visitReferenceExpression(@NotNull PsiReferenceExpression expr) {
        if (expression instanceof PsiReferenceExpression &&
            (expr.getParent() instanceof PsiMethodCallExpression == expression.getParent() instanceof PsiMethodCallExpression)) {
          if (Objects.equals(expr.getReferenceName(), ((PsiReferenceExpression)expression).getReferenceName()) && !isValidReference(expr, false)) {
            result.add(expr);
          }
        }
        visitElement(expr);
      }
@Override public void visitReferenceExpression(@NotNull PsiReferenceExpression expr)