protected function doFormattingWithParsedFormat(\DateTimeInterface $dateTime, array $parsedFormat, array $localizedLiterals)
    {
        $formattedDateTime = '';

        foreach ($parsedFormat as $subformat) {
            if (is_array($subformat)) {
                // This is just a simple string we use literally
                $formattedDateTime .= $subformat[0];
            } else {
                $formattedDateTime .= $this->doFormattingForSubpattern($dateTime, $subformat, $localizedLiterals);
            }
        }

        return $formattedDateTime;
    }