private Integer computeCycleRootIndex() {
			Container cycleRoot = component.getFocusCycleRootAncestor();
			if (cycleRoot == null) {
				return -1;
			}
			ComponentInfo cycleRootInfo = getComponentInfo(cycleRoot);
			List<Component> rootTraversalComps = cycleRootInfo.getTraversalComps();
			return rootTraversalComps.indexOf(component);
		}
Diagnostic dialog for display information about the components in a window and related focus
information.
Ghidra/Framework/Docking/src/main/java/ghidra/docking/util/ComponentInfoDialog.java