public Optional<Node> coordinator() {
        return Optional.ofNullable(this.coordinator);
    }
Returns the current coordinator node.

@return the current coordinator node.
clients/src/main/java/org/apache/kafka/clients/consumer/internals/CoordinatorRequestManager.java