static void migrateList(Collection a, Collection b) { b.addAll(a); a.clear(); }