static void replaceListPart(L l, int i, int j, L l2) { l.subList(i, j).clear(); l.addAll(i, l2); }