def METHOD_NAME(self, thread):
    tid = thread.get_thread_id()
    self.consume_pipe_until(lambda w:
                            w and w.get_thread().get_thread_id() == tid,
                            self.search_threads_rebuild_limit)
    for pos, threadlinewidget in enumerate(self.threadlist.get_lines()):
        if threadlinewidget.get_thread().get_thread_id() == tid:
            self.body.set_focus(pos)
            break