PsiExpression (PsiElement context) { PsiExpressionStatement statement = PsiTreeUtil.getNonStrictParentOfType(context, PsiExpressionStatement.class); return statement != null ? statement.getExpression() : null; }