String (PsiLambdaExpression lambdaExpression) { @NonNls String blockText; final PsiElement body = lambdaExpression.getBody(); if (body instanceof PsiExpression) { final PsiType returnType = LambdaUtil.getFunctionalInterfaceReturnType(lambdaExpression); blockText = "{\n"; blockText += PsiTypes.voidType().equals(returnType) ? "" : "return "; blockText += body.getText() + ";\n}"; } else if (body != null) { blockText = body.getText(); } else { blockText = null; } return blockText; }