public Map<Integer, TaskState> tasksState() {
        return tasks;
    }
Provides the current state of the connector tasks.

@return the state for each task ID; never {@code null}
connect/api/src/main/java/org/apache/kafka/connect/health/ConnectorHealth.java