code: private function getTaxesRates(ShipmentMethodInterface $method, CountryInterface $country)
      {
          return array_map(function (TaxInterface $tax) {
              return $tax->getRate();
          }, $this->taxResolver->resolveTaxes($method, $country));
      }
docs: Returns the tax rates for the given method.
  
  @param ShipmentMethodInterface $method
  @param CountryInterface        $country
  
  @return array