class MapStream implements Stream<Map.Entry<K, V>> {

  public IntStream flatMapToInt(BiFunction<? super K, ? super V, ? extends IntStream> mapper) {
    return underlying.flatMapToInt(e -> mapper.apply(e.getKey(), e.getValue()));
  }

  private  MapStream(Stream<Map.Entry<K, V>> underlying);

}