private function getOptionsProvider(ShippingMethodInterface $method)
 {
     $provider = $method->getOptionsProvider();
     $collection = $this->get('shipping_method.options_provider.collection');
     if ($collection->containsKey($provider)) {
         return $collection->get($provider);
     }
     return null;
 }