public function getNotificationFactory(): ?Factory
    {
        if (!$this->hasNotificationFactory()) {
            $this->setNotificationFactory($this->getDefaultNotificationFactory());
        }
        return $this->notificationFactory;
    }