PsiExpression (@NotNull PsiReferenceExpression referenceExpression) { final PsiElement resolved = referenceExpression.resolve(); return resolved instanceof PsiVariable ? findVariableDefinition(referenceExpression, (PsiVariable)resolved) : null; }