def METHOD_NAME(self, context):
    links = {sock.name: [link.to_socket for link in sock.links] for sock in self.outputs}
    [self.outputs.remove(sock) for sock in self.outputs[2:]]
    new_socks = []
    if self.face_index:
        new_socks.append(self.outputs.new('SvStringsSocket', 'Face index'))
    if self.overlap_number:
        new_socks.append(self.outputs.new('SvStringsSocket', 'Overlap number'))
    [[self.id_data.links.new(sock, link) for link in links[sock.name]]
                                         for sock in new_socks if sock.name in links]
    updateNode(self, context)