code: @Override
      public WorkflowTaskPb.WorkflowTask.WorkflowTaskList toProto(List<WorkflowTask> list) {
          return WorkflowTaskPb.WorkflowTask.WorkflowTaskList.newBuilder()
                  .addAllTasks(list.stream().map(this::toProto)::iterator)
                  .build();
      }
docs: Convert a list of {@link WorkflowTask} instances into a ProtoBuf wrapper object.
  
  @param list a list of {@link WorkflowTask} instances
  @return a ProtoBuf message wrapping the contents of the list