docs: public void registerType(Class<?> type) {
  		if (type == null) {
  			throw new NullPointerException("Cannot register null type class.");
  		}
  
  		TypeInformation<?> typeInfo = TypeExtractor.createTypeInfo(type);
  
  		if (typeInfo instanceof PojoTypeInfo) {
  			config.registerPojoType(type);
  		} else {
  			config.registerKryoType(type);
  		}
  	}