def METHOD_NAME(self) -> str:
    cursor_row = self._get_line_number("insert")
    anchor_rows = self.clean_duplicates_and_get_anchor_dict().keys()
    rows_before_cursor = [n for n in anchor_rows if n < cursor_row]
    if rows_before_cursor:
        previous_anchor_row = max(rows_before_cursor)
        self.tab_textwidget.mark_set("insert", f"{previous_anchor_row}.0")
        self.tab_textwidget.see("insert")
    elif anchor_rows and global_settings.get("anchors_cycle", bool):
        previous_anchor_row = max(anchor_rows)
        self.tab_textwidget.mark_set("insert", f"{previous_anchor_row}.0")
        self.tab_textwidget.see("insert")
    return "break"