code: public static void writeToList(CodedOutputStream out, int order, FieldType type, List list) throws IOException {
          writeToList(out, order, type, list, false);
      }
docs: Write to list.
  
  @param out the out
  @param order the order
  @param type the type
  @param list the list
  @throws IOException Signals that an I/O exception has occurred.