public function get(string $name): CompressionMethod
    {
        if (!$this->has($name)) {
            throw new \InvalidArgumentException(\sprintf('The compression method "%s" is not supported.', $name));
        }

        return $this->compressionMethods[$name];
    }