void (@NotNull PsiReferenceExpression expression) { if (myCause != null) { return; } super.visitReferenceExpression(expression); final PsiExpression qualifier = expression.getQualifierExpression(); final PsiElement referent = expression.resolve(); if (!(referent instanceof PsiField field)) { return; } if (myFields.contains(field) || myInnerClasses.contains(field.getContainingClass())) { return; } if (field.hasModifierProperty(PsiModifier.STATIC)) { return; } if (qualifier == null || (myCheckThisExpression && (qualifier instanceof PsiQualifiedExpression))) { myCause = field; } }