static HashSet asHashSet(Collection c) { synchronized(collectionMutex(c)) { ret new HashSet(c); } } static HashSet asHashSet(A[] a) { ret a == null ? null : new HashSet(Arrays.asList(a)); }