public boolean shouldRestartTasks() {
        return !taskIdsToRestart().isEmpty();
    }
Determine whether at least one {@link Task} instance is to be restarted
based upon the {@link #restartRequest() restart request}.

@return true if any {@link Task} instances are to be restarted, or false if none are to be restarted
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/RestartPlan.java