void ( @NotNull PsiReferenceExpression expression) { super.visitReferenceExpression(expression); final PsiElement element = expression.resolve(); if (!(element instanceof PsiField field)) { return; } if (field.hasModifierProperty(PsiModifier.FINAL)) { return; } registerError(expression, field); }