PsiVariable (PsiExpression expression, boolean equals) { final PsiReferenceExpression referenceExpression = getReferenceExpressionFromNullComparison(expression, equals); final PsiElement target = referenceExpression != null ? referenceExpression.resolve() : null; return target instanceof PsiVariable ? (PsiVariable)target : null; }