static void replaceCollection(Collection dest, Collection src) { dest.clear(); dest.addAll(src); }