code: public function getSelectedCompressionMethods(array $selected_compression_methods)
      {
          $result = [];
          foreach ($selected_compression_methods as $method) {
              Assertion::keyExists($this->compression_methods, $method, sprintf('The compression method "%s" is not supported.', $method));
              $result[] = $this->compression_methods[$method];
          }
  
          return $result;
      }
docs: @param string[] $selected_compression_methods
  
  @return \Jose\Compression\CompressionInterface[]