@Override
    void collapse(@NotNull PsiElement anchor) {
      PsiLambdaExpression lambda = tryCast(anchor, PsiLambdaExpression.class);
      if (lambda == null) return;
      PsiElement body = lambda.getBody();
      PsiExpression expression = RedundantLambdaCodeBlockInspection.isCodeBlockRedundant(body);
      if (expression != null) {
        body.replace(expression);
      }
    }
@Override
    void collapse(@NotNull PsiElement anchor)