def METHOD_NAME(self, node, **kwargs):
    new_nodes = []
    for node_ in node.nodes:
        new_node = self._walker._handle(node_)
        if new_node is not None:
            if isinstance(new_node, SequenceNode):
                new_nodes.extend(new_node.nodes)
            else:
                new_nodes.append(new_node)
    if not new_nodes:
        self.removed_sequences.append(node)
        return None
    if len(new_nodes) == 1:
        # Remove the unnecessary sequence node
        self.replaced_sequences[node] = new_nodes[0]
        return new_nodes[0]
    sn = SequenceNode(node.addr, nodes=new_nodes)
    self.replaced_sequences[node] = sn
    return sn