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