boolean (@Nullable GrExpression expr) { if (expr instanceof GrReferenceExpression) { final PsiElement resolved = ((GrReferenceExpression)expr).resolve(); if (resolved instanceof PsiVariable) { return true; } } return false; }