private boolean shouldHandleAsSimpleLambda(PsiLambdaExpression lambda) {
    PsiElement body = lambda.getBody();
    boolean isSimpleLambda = mySettings.KEEP_SIMPLE_LAMBDAS_IN_ONE_LINE && !lambda.textContains('\n');
    if (body instanceof PsiCodeBlock block) {
      return isSimpleLambda && shouldAddNewLineWhenBodyIsPresent(block);
    }
    return isSimpleLambda;
  }
private boolean shouldHandleAsSimpleLambda(PsiLambdaExpression lambda)