private function isTypeMatches(MediaTypeInterface $mediaType) { return $mediaType->getType() === '*' || $this->isTypeEquals($mediaType); }