public NodeList retiring() {
        return matching(node -> node.status().wantToRetire() || node.status().preferToRetire());
    }
Returns the subset of nodes which are being retired
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/NodeList.java