static L shortenList(int max, L l) { if (l(l) <= max) ret l; ret subList(l, 0, max); } static L shortenList(L l, int max) { ret shortenList(max, l); }