presto-cli/src/main/java/io/prestosql/cli/AlignedTablePrinter.java/AlignedTablePrinter/maxLineLength
class AlignedTablePrinter:    static int maxLineLength(String s)
    {
        int n = 0;
        for (String line : LINE_SPLITTER.split(s)) {
            n = max(n, consoleWidth(line));
        }
        return n;
    }