docs: public static <C> void objectToDataCollection(Collection<C> objectCollection, Collection<Data> dataCollection,
                                                    SerializationService serializationService, String errorMessage) {
          for (C item : objectCollection) {
              checkNotNull(item, errorMessage);
              dataCollection.add(serializationService.toData(item));
          }
      }