private static void setNewWantedState(NodeInfo nodeInfo,
                                          NodeState newWantedState,
                                          NodeListener stateListener,
                                          boolean probe) {
        if (probe) return;
        nodeInfo.setWantedState(newWantedState);
        stateListener.handleNewWantedNodeState(nodeInfo, newWantedState);
    }
Set the wanted state on the distributor to something appropriate given the storage is being
set to (or is equal to) newStorageWantedState.
clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/restapiv2/requests/SetNodeStateRequest.java