@Deprecated(since = "3.0.1", forRemoval = true)
    public static <K, V, M extends Map<K, V>> Collector<Map.Entry<K, V>, ?, M> toMap(Supplier<M> mapFactory) {
        return Collector.of(
                mapFactory,
                BuiltInCollectorFactory::putEntry,
                BuiltInCollectorFactory::combine);
    }
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