private boolean isRestarting(ConnectorStateInfo.AbstractState state) {
        return isRestarting(state.state());
    }
Get the total number of tasks in the connector.

@return the total number of tasks
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/RestartPlan.java