boolean (PsiExpression expression, PsiVariable variable) { return expression instanceof PsiReferenceExpression referenceExpression && !referenceExpression.isQualified() && referenceExpression.resolve() == variable; }