private List<Component> doComputeTraversalComps() {
			List<Component> traversals = new ArrayList<>();
			Container container = (Container) component;
			FocusTraversalPolicy policy = container.getFocusTraversalPolicy();
			Component comp = policy.getFirstComponent(container);
			while (comp != null && !traversals.contains(comp)) {
				traversals.add(comp);
				comp = policy.getComponentAfter(container, comp);
			}
			return traversals;
		}
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