boolean (@NotNull PsiReferenceExpression referenceExpression, @Nullable PsiElement context) { if (context == null) { return false; } final PsiElement target = referenceExpression.resolve(); if (!(target instanceof PsiVariable variable)) { return false; } return variableIsAssignedAtPoint(variable, context, referenceExpression); }