private function getContentType(Content $content): EzContentType
    {
        if (method_exists($content, 'getContentType')) {
            return $content->getContentType();
        }

        // @deprecated Remove when support for eZ kernel < 7.4 ends

        return $this->contentTypeService->loadContentType(
            $content->contentInfo->contentTypeId
        );
    }