static L> syncMapToPairs(Map map) { if (map == null) ret new L; synchronized(collectionMutex(map)) { ret mapToPairs(map); } }