def METHOD_NAME(self, cursor):
    pos = cursor.position()
    cursor.select(QTextCursor.BlockUnderCursor)
    text = cursor.selectedText()
    pos -= cursor.selectionStart()
    match = re.findall(Ref.RegExNonCapturing, text)
    for m in match:
        if text.find(m) <= pos <= text.find(m) + len(m):
            return m
            # def event(self, event):
            # if event.type() == QEvent.ToolTip:
            # cursor = self.cursorForPosition(event.pos())
            # ref = self.refUnderCursor(cursor)
            # if ref:
            # QToolTip.showText(self.mapToGlobal(event.pos()), infoForRef(ref))
            # else:
            # QToolTip.hideText()
            # return True
            # return MDEditView.event(self, event)