@Override
			public String getValue(ComponentInfo info, Settings settings, Object data,
					ServiceProvider provider) throws IllegalArgumentException {
				Component component = info.getComponent();
				Container cycleRoot = component.getFocusCycleRootAncestor();
				ComponentInfo cycleRootInfo = getComponentInfo(cycleRoot);
				if (cycleRootInfo != null) {
					return cycleRootInfo.getNameAndId();
				}
				return null;
			}
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