public function supportedMimeTypes(
            array $globalMimeTypes = [],
            array $globalClasses = []
    ): SupportedMimeTypes {
        if ($this->disableContentNegotation || $this->routingAnnotations()->isContentNegotiationDisabled()) {
            return SupportedMimeTypes::createWithDisabledContentNegotation();
        }


        return new SupportedMimeTypes(
                array_merge(
                        $this->routingAnnotations()->mimeTypes(),
                        $this->mimeTypes,
                        $globalMimeTypes
                ),
                array_merge(
                        $globalClasses,
                        $this->routingAnnotations()->mimeTypeClasses(),
                        $this->mimeTypeClasses
                )
        );
    }