docs: public static void writeToList(CodedOutputStream out, int order, FieldType type, List list) throws IOException {
          if (list == null) {
              return;
          }
          for (Object object : list) {
              writeObject(out, order, type, object, true);
          }
  
      }