void (BiConsumer<? super Integer, ? super String> action) { ((TreeMap<Integer, Collection<String>>)myMap).descendingMap().forEach((weight, list) -> { list.forEach(subFamily -> action.accept(weight, subFamily)); }); }