public function registerDestinationForMessages(DeliveryDestination $deliveryDestination, string ...$messages): self
    {
        /**
         * @noinspection PhpUnhandledExceptionInspection
         *
         * @var Endpoint $applicationEndpoint
         */
        $applicationEndpoint = $this->getKernelContainerService(Endpoint::class);

        $newEndpoint = $applicationEndpoint->withNewDeliveryDestination($deliveryDestination);

        return $this->registerEndpointForMessages($newEndpoint, ...$messages);
    }