class Fun {

    public static <K, V> Consumer<Map.Entry<K, V>>
    onKey(final @NotNull Consumer<? super K> consumer) {
        return entry -> consumer.accept(entry.getKey());
    }

    private  Fun();

}