def indentBlock(block):
            cursor = cursorAtSpaceEnd(block)
            cursor.insertText(' ' if withSpace else self.text())
def serialize(self):
        s = []
        for v in self:
            if isinstance(v, BaseConfig):
                v = v.serialize()
            s.append(v)
        return s