private function addFlagsToOutput(array $entry, string $output): array
    {
        if (isset($entry['flags']) && \count($entry['flags']) !== 0) {
            $output .= '#, ' . \implode(', ', $entry['flags']) . $this->eol;
        }

        return [$entry, $output];
    }