public static <T> Map<String, T> translateDeprecatedConfigs(Map<String, T> configs, String[][] aliasGroups) {
        return translateDeprecatedConfigs(configs, Stream.of(aliasGroups)
            .collect(Collectors.toMap(x -> x[0], x -> Stream.of(x).skip(1).collect(Collectors.toList()))));
    }
Translates deprecated configurations into their non-deprecated equivalents

This is a convenience method for {@link ConfigUtils#translateDeprecatedConfigs(Map, Map)}
until we can use Java 9+ {@code Map.of(..)} and {@code Set.of(...)}

@param configs the input configuration
@param aliasGroups An array of arrays of synonyms.  Each synonym array begins with the non-deprecated synonym
                   For example, new String[][] { { a, b }, { c, d, e} }
                   would declare b as a deprecated synonym for a,
                   and d and e as deprecated synonyms for c.
                   The ordering of synonyms determines the order of precedence
                   (e.g. the first synonym takes precedence over the second one)
@return a new configuration map with deprecated  keys translated to their non-deprecated equivalents
clients/src/main/java/org/apache/kafka/common/utils/ConfigUtils.java