void (@NotNull final GrReferenceExpression expression) { super.visitReferenceExpression(expression); final PsiElement psiElement = expression.resolve(); if (psiElement instanceof GrField grField) { if (grField.getContainingClass() == targetClass && !referencedFields.contains(grField)) { referencedFields.add(grField); } } }