public function toggleVisibility(StateToggleVisibilityEvent $event, $eventName, EventDispatcherInterface $dispatcher)
    {
        $state = $event->getState();

        $state
            ->setDispatcher($dispatcher)
            ->setVisible(!$state->getVisible())
            ->save()
        ;

        $event->setState($state);
    }