def METHOD_NAME(self, step):  # pylint: disable=redefined-outer-name
    assert step not in self._stack
    self._stack.append(step)
    step.parent = self.get_current()
    step.level = len(self._stack)