IntOpenHashSet (final Int2IntMultimap multimap, final int key) { final IntOpenHashSet values = new IntOpenHashSet(); multimap.lookup(key, value -> { values.add(value); return true; }); return values; }