public static function addSerializerToDriver(Serializer $serializer, FileDriverProvider $provider): FileDriverProvider {
		if ($provider instanceof FileDriverWithSerializer) {
			$provider->addSerializer($serializer);
			return $provider;
		}
		return new FileDriverWithSerializer($serializer, $provider);
	}