public int getIndexInParent() {
		GTreeNode parent = getParent();
		if (parent == null) {
			return -1;
		}
		return parent.getIndexOfChild(this);
	}
Returns the index of this node within its parent node

@return the index of this node within its parent node
Ghidra/Framework/Docking/src/main/java/docking/widgets/tree/GTreeNode.java