public boolean isAncestor(GTreeNode node) {
		GTreeNode nodeParent = node.getParent();
		while (nodeParent != null) {
			if (nodeParent.equals(this)) {
				return true;
			}
			nodeParent = nodeParent.getParent();
		}
		return false;
	}
Returns true if the given node is a child of this node or one of its children.

@param node the potential descendant node to check
@return true if the given node is a child of this node or one of its children
Ghidra/Framework/Docking/src/main/java/docking/widgets/tree/GTreeNode.java