code: 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()
              ));
          }
      }
docs: Asserts that the given shipment is supported by this platform.
  
  @param ShipmentInterface $shipment
  
  @throws InvalidArgumentException