def METHOD_NAME(self):
    """Remove Lilypond comments from text"""
    def whiteout_section(cursor, start, end):
        spaces = ''.join(' ' for x in range(start, end))
        with cursor.document as doc:
            doc[start:end] = spaces
    doc = ly.document.Document(self.document().toPlainText())
    cursor = lydocument.Cursor(doc)
    source = ly.document.Source(cursor, True, tokens_with_position=True)
    start = 0
    for token in source:
        if isinstance(token, ly.lex.BlockCommentStart):
            start = token.pos
        elif isinstance(token, ly.lex.BlockCommentEnd):
            if start:
                whiteout_section(cursor, start, token.end)
                start = 0
        elif isinstance(token, ly.lex.Comment):
            whiteout_section(cursor, token.pos, token.end)
    return cursor.document.plaintext()