def indentBlock(block):
            cursor = cursorAtSpaceEnd(block)
            cursor.insertText(' ' if withSpace else self.text())
def visitdir(self, dir):
        dir = normalizerootdir(dir, "visitdir")
        return dir in self._dirs