def METHOD_NAME(self, text, callback: Callable[["DisasmInsnContextMenu"], None], add_separator_first=True):
    if add_separator_first:
        self.entries.append(MenuSeparator())
    self.entries.append(MenuEntry(text, partial(callback, self)))