boolean (PsiExpression expression) { PsiLambdaExpression lambda = tryCast(PsiUtil.skipParenthesizedExprDown(expression), PsiLambdaExpression.class); if (lambda != null) { PsiExpression body = LambdaUtil.extractSingleExpressionFromBody(lambda.getBody()); return ExpressionUtils.isLiteral(PsiUtil.skipParenthesizedExprDown(body), Boolean.TRUE); } return false; }