static int maxLineCount(Collection l) { int n = 0; if (l != null) for (S s : l) n = max(n, countLines(s)); ret n; }