@SafeVarargs
    public static <K, V> Map<K, V> mkMap(final Map.Entry<K, V>... entries) {
        final LinkedHashMap<K, V> result = new LinkedHashMap<>();
        for (final Map.Entry<K, V> entry : entries) {
            result.put(entry.getKey(), entry.getValue());
        }
        return result;
    }
Creates a map from a sequence of entries

@param entries The entries to map
@param <K>     The key type
@param <V>     The value type
@return A map
clients/src/main/java/org/apache/kafka/common/utils/Utils.java