private function isEventSupported(Event $event): bool
    {
        $supported = false;

        foreach ($this->getSupportedEventTypes() as $supportedEventType) {
            if (\is_a($event, $supportedEventType)) {
                $supported = true;

                break;
            }
        }

        return $supported;
    }