static void mapPut(Map map, A key, B value) { if (map != null && key != null && value != null) map.put(key, value); } ifclass Pair static void mapPut(Map map, Pair p) { if (map != null && p != null) map.put(p.a, p.b); } endif