private static void addToMapValueSet(Map map, Object key, Object val) { Set oldVal = (Set)map.get(key);
private static <K,V> void addToMapValueSet(Map<K,Set<V>> map, K key, V val) { Set<V> oldVal = map.get(key);
    private static void addToMapValueSet(Map/*<K,Set<V>>*/ map,                                          Object/*<K>*/ key,                                         Object/*<V>*/ val) {        Set/*<V>*/ oldVal = (Set)map.get(key);        if (oldVal == null) {            HashSet/*<V>*/ values = new HashSet();            values.add(val);            map.put(key,values);        } else {             oldVal.add(val);        }    }