public EndpointReadyFutures build(
            Optional<Authorizer> authorizer,
            AuthorizerServerInfo info
        ) {
            if (authorizer.isPresent()) {
                return build(authorizer.get().start(info), info);
            } else {
                return build(Collections.emptyMap(), info);
            }
        }
Build the EndpointReadyFutures object.

@param authorizer    The authorizer to use, if any. Will be started.
@param info          Server information to be passed to the authorizer.

@return              The new futures object.
server-common/src/main/java/org/apache/kafka/server/network/EndpointReadyFutures.java