protected function assertShipmentPlatform(ShipmentInterface $shipment)
    {
        if ($shipment->getPlatformName() !== $this->getName()) {
            throw new InvalidArgumentException(sprintf(
                "Platform %s does not support shipment %s.",
                $this->getName(), $shipment->getNumber()
            ));
        }
    }