final void setTreeParent(CompositeElement parent) {
    if (parent == myParent) return;

    PsiFileImpl file = getCachedFile(this);
    if (file != null) {
      file.beforeAstChange();
    }

    myParent = parent;
    if (parent != null && parent.getElementType() != TokenType.DUMMY_HOLDER) {
      DebugUtil.revalidateNode(this);
    }
  }
final void setTreeParent(CompositeElement parent)