public function parseAcceptLanguageHeader(HttpHeaders $headers): array
    {
        $headerValues = [];

        if (!$headers->tryGet('Accept-Language', $headerValues)) {
            return [];
        }

        $parsedHeaderValues = [];
        $numHeaderValues = count($headerValues);

        for ($i = 0;$i < $numHeaderValues;$i++) {
            $parsedHeaderParameters = $this->parseParameters($headers, 'Accept-Language', $i);
            // The first value should always be the language
            $language = $parsedHeaderParameters->getKeys()[0];
            $parsedHeaderValues[] = new AcceptLanguageHeaderValue($language, $parsedHeaderParameters);
        }

        return $parsedHeaderValues;
    }