@Override
            public void visitElement(@NotNull final PsiElement element) {
              super.visitElement(element);
              if (element instanceof GrReferenceExpression expr) {
                if (!expr.isQualified() && oldName.equals(expr.getReferenceName())) {
                  result.add(expr);
                }
              }
            }
@Override
            public void visitElement(@NotNull final PsiElement element)