private LeaderState leaderState() {
        return leaderState;
    }
Get the leader state stored in this worker coordinator.

@return the leader state
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/WorkerCoordinator.java