docs: private static LinkedHashMap<String, KryoRegistration> buildKryoRegistrations(
  			Class<?> serializedType,
  			LinkedHashSet<Class<?>> registeredTypes,
  			LinkedHashMap<Class<?>, Class<? extends Serializer<?>>> registeredTypesWithSerializerClasses,
  			LinkedHashMap<Class<?>, ExecutionConfig.SerializableSerializer<?>> registeredTypesWithSerializers) {
  
  		final LinkedHashMap<String, KryoRegistration> kryoRegistrations = new LinkedHashMap<>();
  
  		kryoRegistrations.put(serializedType.getName(), new KryoRegistration(serializedType));
  
  		for (Class<?> registeredType : checkNotNull(registeredTypes)) {
  			kryoRegistrations.put(registeredType.getName(), new KryoRegistration(registeredType));
  		}
  
  		for (Map.Entry<Class<?>, Class<? extends Serializer<?>>> registeredTypeWithSerializerClassEntry :
  				checkNotNull(registeredTypesWithSerializerClasses).entrySet()) {
  
  			kryoRegistrations.put(
  					registeredTypeWithSerializerClassEntry.getKey().getName(),
  					new KryoRegistration(
  							registeredTypeWithSerializerClassEntry.getKey(),
  							registeredTypeWithSerializerClassEntry.getValue()));
  		}
  
  		for (Map.Entry<Class<?>, ExecutionConfig.SerializableSerializer<?>> registeredTypeWithSerializerEntry :
  				checkNotNull(registeredTypesWithSerializers).entrySet()) {
  
  			kryoRegistrations.put(
  					registeredTypeWithSerializerEntry.getKey().getName(),
  					new KryoRegistration(
  							registeredTypeWithSerializerEntry.getKey(),
  							registeredTypeWithSerializerEntry.getValue()));
  		}
  
  		// add Avro support if flink-avro is available; a dummy otherwise
  		AvroUtils.getAvroUtils().addAvroGenericDataArrayRegistration(kryoRegistrations);
  
  		return kryoRegistrations;
  	}