public void Write(IElement element) { element.Accept(this); }
public void Visit(IElement element) => element.Accept(downwardVisitor);
private void TraverseToRoot(IElement parent) { parentCount++; parent.Accept(this); }