def METHOD_NAME(self):
    menu = MDEditView.METHOD_NAME(self)
    a = QAction(self.tr("Insert reference"), menu)
    a.triggered.connect(self.popupCompleter)
    menu.insertSeparator(menu.actions()[0])
    menu.insertAction(menu.actions()[0], a)
    return menu