class Fun {

    public static <K, V> Collector<Map.Entry<K, V>, ?, Map<K, V>>
    entriesToMapOfType(final @NotNull Supplier<Map<K, V>> mapSupplier) {
        return Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, keepLastMerger(), mapSupplier);
    }

    private  Fun();

}