static void clusters_merge(Map> clusters, L a, L b) { for (A x : b) { a.add(x); clusters.put(x, a); } }