def METHOD_NAME(METHOD_NAME, self=self, c=self.counter,
           index=self.text.index("insert")):
    if index != self.text.index("insert"):
        self.handle_restore_timer(c)
    else:
        self.editwin.text_frame.after(CHECK_DELAY, METHOD_NAME, METHOD_NAME)