static void runAndClear(L l) { L l2 = cloneList(l); l.clear(); for (O r : l2) pcallF(r); }