private function addReferencesToOutput(array $entry, string $output): array
    {
        if (isset($entry['references']) && \count($entry['references']) !== 0) {
            foreach ($entry['references'] as $ref => $value) {
                $output .= '#: ' . \str_replace(['{', '}'], '', $ref) . $this->eol;
            }
        }

        return [$entry, $output];
    }