docs: public final void register(Class type, Serializer serializer) {
          if (type == null) {
              throw new IllegalArgumentException("Class type information is required!");
          }
          if (serializer.getTypeId() <= 0) {
              throw new IllegalArgumentException(
                      "Type ID must be positive! Current: " + serializer.getTypeId() + ", Serializer: " + serializer);
          }
          safeRegister(type, createSerializerAdapter(serializer, this));
      }