def remove_breakpoint_line_mark(cls, b: GtkSource.Buffer,
                                 ssb_filename: str, opcode_offset: int,
                                 category: str):
     # XXX: This is a bit ugly, but due to the fact, that there can be one call to a macro
     # in the same file, there can be exactly 0-2 line markers:
     for i in [0, 1]:
         m: Gtk.TextMark = b.get_mark(
             f'for:opcode_<<<{ssb_filename}>>>_{opcode_offset}_{i}')
         if m is None:
             return
         b.remove_source_marks(b.get_iter_at_mark(m), b.get_iter_at_mark(m),
                               category)
 def remove_all_line_marks(cls, b: GtkSource.Buffer, category: str):
     b.remove_source_marks(b.get_start_iter(), b.get_end_iter(), category)