boolean (@NotNull PsiLambdaExpression lambda, @NotNull String replacementText) { return isSafeLambdaReplacement(lambda, () -> JavaPsiFacade.getElementFactory(lambda.getProject()) .createExpressionFromText(replacementText, lambda.getParent())); }