@Override
    public List<BrokerUpdater.Broker> getBrokersToOptimize(Collection<BrokerUpdater.Broker> brokers) {
        List<BrokerUpdater.Broker> brokersToOptimize = new ArrayList<>();
        for (BrokerUpdater.Broker broker : brokers) {
            if (!isBrokerAcceptable(broker)) {
                LOGGER.warn("Broker {} violates goal {}", broker.getBrokerId(), name());
                brokersToOptimize.add(broker);
            }
        }
        return brokersToOptimize;
    }
Get the acceptable action with the highest score.

@param candidateActionScores candidate actions with scores
@return the acceptable action with the highest score
core/src/main/java/kafka/autobalancer/goals/AbstractGoal.java