public List<Integer> nodesSafelySetTo(State state) {
        return switch (state) {
            // Orchestrator's ALLOWED_TO_BE_DOWN or PERMANENTLY_DOWN, respectively
            case MAINTENANCE, DOWN ->
                    clusterInfo.getStorageNodeInfos().stream()
                               .filter(storageNodeInfo -> {
                                   NodeState userWantedState = storageNodeInfo.getUserWantedState();
                                   return userWantedState.getState() == state &&
                                           Objects.equals(userWantedState.getDescription(), ORCHESTRATOR_RESERVED_DESCRIPTION);
                               })
                               .map(NodeInfo::getNodeIndex)
                               .toList();
            default ->
                    // Note: There is no trace left if the Orchestrator sets the state to UP, so that's handled
                    // like any other state:
                    List.of();
        };
    }
Returns the indices of the nodes that have been safely set to the given state by the Orchestrator (best guess).
clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/ContentCluster.java