private static <K, V, M extends Map<K, V>> void putEntry(M map, Map.Entry<K, V> entry) {
        putEntry(map, entry.getKey(), entry.getValue());
    }
Returns a {@code Collector} that accumulates {@code Map.Entry<K, V>} input elements into a
map of the supplied type. The returned collector will throw {@code IllegalStateException}
whenever a set of input elements contains multiple entries with the same key.

@param <K>        the type of map keys
@param <V>        the type of map values
@param <M>        the type of the resulting {@code Map}
@param mapFactory a {@code Supplier} which returns a new, empty {@code Map} of the appropriate type.
@return a {@code Collector} which collects map entry elements into a {@code Map}, in encounter order.

@deprecated Use {@link MapCollectors#toMap(Supplier)} instead.
core/src/main/java/org/jdbi/v3/core/collector/BuiltInCollectorFactory.java