private void addChildInfos(List<ComponentInfo> infoList, ComponentInfo parentInfo) {
		if (parentInfo.getComponent() instanceof Container container) {
			for (int i = 0; i < container.getComponentCount(); i++) {
				Component comp = container.getComponent(i);
				ComponentInfo info = new ComponentInfo(parentInfo, comp, i);
				infoList.add(info);
				addChildInfos(infoList, info);
			}
		}
	}
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