def indentBlock(block):
            cursor = cursorAtSpaceEnd(block)
            cursor.insertText(' ' if withSpace else self.text())
def stop(self, action_name: str) -> None:
        """Defines how to record the duration once an action is complete."""