public function onBeforeNormalization(BeforeNormalizationEvent $event): void
    {
        $resource = $event->getResource();

        if ($resource instanceof RelatedResourceInterface) {
            $this->fixForRelations($resource);
        }

        if ($resource instanceof ActionedResourceInterface) {
            $this->fixForActions($resource);
        }
    }