boolean (String name, PsiReferenceExpression referenceExpression) { if (!name.equals(referenceExpression.getReferenceName())) return false; LightRecordMember recordMember = tryCast(referenceExpression.resolve(), LightRecordMember.class); if (recordMember == null) return false; return recordMember.getRecordComponent() == myComponent; }