public static function normalizeNewLines(string $s): string
    {
        if (\strpos($s, "\r") === false) {
            return $s;
        }

        return \str_replace(["\r\n", "\r"], "\n", $s);
    }