code: public static void registerSerializers(final Kryo kryo) {
  
          final ListSerializer serializer = new ListSerializer();
  
          kryo.register(List.class, serializer);
  
          // Note:
          //  Only registering above is good enough for serializing/deserializing.
          //  but if using Kryo#copy, following is required.
  
          kryo.register(IndexedLists.of().getClass(), serializer);
          kryo.register(IndexedLists.of(1).getClass(), serializer);
          kryo.register(IndexedLists.of(1,2).getClass(), serializer);
          kryo.register(IndexedLists.of(1,2,3).getClass(), serializer);
          kryo.register(IndexedLists.of(1,2,3,4).getClass(), serializer);
          kryo.register(IndexedLists.of(1,2,3,4,5).getClass(), serializer);
          kryo.register(IndexedLists.of(1,2,3,4,5,6).getClass(), serializer);
          kryo.register(IndexedLists.of(1,2,3,4,5,6,7).getClass(), serializer);
          kryo.register(IndexedLists.of(1,2,3,4,5,6,7,8).getClass(), serializer);
          kryo.register(IndexedLists.of(1,2,3,4,5,6,7,8,9).getClass(), serializer);
          kryo.register(IndexedLists.of(1,2,3,4,5,6,7,8,10).getClass(), serializer);
          kryo.register(IndexedLists.of(1,2,3,4,5,6,7,8,10,11).getClass(), serializer);
  
      }
docs: Creates a new {@link  ImmutableListSerializer} and registers its serializer
  
  @param kryo the {@link Kryo} instance to set the serializer on