public static <K, T> Map<K, T> toIdentityMap(Collection<T> collection, Function<? super T, K> keyFunction) {
        return toMap(collection, keyFunction, Function.identity());
    }
Convert a set into a map. The value of the map is the value of the set. If there is a key conflict, the second one shall prevail.

@param collection collection
@param keyFunction keyFunction
@param <K> key data type
@param <T> Data type before conversion
@return Convert to future map
chat2db-server/chat2db-server-tools/chat2db-server-tools-common/src/main/java/ai/chat2db/server/tools/common/util/EasyCollectionUtils.java