private static Map<ConnectorTaskId, Map<String, String>> taskConfigListAsMap(String connector, List<Map<String, String>> configs) {
        int index = 0;
        Map<ConnectorTaskId, Map<String, String>> result = new TreeMap<>();
        for (Map<String, String> taskConfigMap: configs) {
            result.put(new ConnectorTaskId(connector, index++), taskConfigMap);
        }
        return result;
    }
@param connConfig the connector's configuration
@param targetState the connector's initial {@link TargetState}; may be {@code null} in which case the default initial target state
{@link TargetState#STARTED} will be used
connect/runtime/src/main/java/org/apache/kafka/connect/storage/MemoryConfigBackingStore.java