public RackAwareOptimizationParams forTasks(final SortedSet<TaskId> tasksToOptimize) {
            return new RackAwareOptimizationParams(
                applicationState,
                trafficCostOverride,
                nonOverlapCostOverride,
                Optional.of(tasksToOptimize)
            );
        }
Return a new config object with the provided tasksToOptimize
streams/src/main/java/org/apache/kafka/streams/processor/assignment/TaskAssignmentUtils.java