protected static DockableComponent getDockableComponent(JComponent component) {
		Container parent = component.getParent();
		while (parent != null) {
			if (parent instanceof DockableComponent) {
				return (DockableComponent) parent;
			}
			parent = parent.getParent();
		}
		return null;
	}
Get the dockable component that contains this component if there is one.
@param component the component that may be within a dockable component.
@return the dockable component or null
Ghidra/Framework/Docking/src/main/java/docking/test/AbstractDockingTest.java