boolean (PsiLambdaExpression expression) { final PsiElement body = expression.getBody(); if (body instanceof PsiExpression) { return false; } return !(body instanceof PsiCodeBlock codeBlock) || !containsReturn(codeBlock) && !codeBlockMayCompleteNormally(codeBlock); }