static Map<String, String> calculateLeaderThrottles(Map<String, Map<Integer, PartitionMove>> moveMap) {
        Map<String, String> results = new HashMap<>();
        moveMap.forEach((topicName, partMoveMap) -> {
            Set<String> components = new TreeSet<>();
            partMoveMap.forEach((partId, move) ->
                move.sources.forEach(source -> components.add(String.format("%d:%d", partId, source))));
            results.put(topicName, String.join(",", components));
        });
        return results;
    }
Calculate the leader throttle configurations to use.

@param moveMap   The movements.
@return          A map from topic names to leader throttle configurations.
tools/src/main/java/org/apache/kafka/tools/reassign/ReassignPartitionsCommand.java