static void trimListToSizeInFront(L l, int targetSize) { int excess = l(l) - targetSize; if (excess > 0) removeSubList(l, 0, excess); }