public function getNotificationDispatcher(): ?Dispatcher
    {
        if (!$this->hasNotificationDispatcher()) {
            $this->setNotificationDispatcher($this->getDefaultNotificationDispatcher());
        }
        return $this->notificationDispatcher;
    }