static Map replaceNullValuesWith(Map map, B value) {
if (map == null) null;
Map m = similarEmptyMap(map);
for (A a, B b : map) {
m.put(a, or(b, value));
}
ret m;
}
static Map replaceNullValuesWith(B value, Map map) {
ret replaceNullValuesWith(map, value);
}