static <A, B> B higherValue(NavigableMap<A, B> map, A key) { if (map == null) null; var e = map.higherEntry(key); ret e == null ?: e.getValue(); }