def METHOD_NAME(self, text: str, /, *, censorLevel: Union[int, None] = None, urlDetection: bool = True) -> None:
    lastInsert = 0
    control, linkColor, normalColor = self._control, self._linkColor, self._lastColor
    if censorLevel is None:
        censor = lambda x: x
    else:
        censor = lambda x: xCensor(x, censorLevel)
    if urlDetection:
        with PtBeginGUIUpdate(control):
            urls = ((i.span(), i[0]) for i in _URL_REGEX.finditer(text))
            for (start, end), url in urls:
                if start > lastInsert:
                    control.METHOD_NAME(censor(text[lastInsert:start]))
                lastInsert = end
                control.insertColor(linkColor)
                self._links[self._nextLink] = _Link(url, control.getCursor())
                control.insertLink(self._nextLink)
                PtDebugPrint(f"xGUILinkHandler.insertString():\tInserting URL {url} as linkId {self._nextLink}", level=kDebugDumpLevel)
                self._nextLink += 1
                control.METHOD_NAME(censor(url))
                control.clearLink()
                control.insertColor(normalColor)
            if lastInsert != len(text):
                control.METHOD_NAME(censor(text[lastInsert:]))
    else:
        control.METHOD_NAME(censor(text))