public static synchronized DockingWindowManager getInstance(Component component) {
		Window window = WindowUtilities.windowForComponent(component);
		while (window != null) {
			DockingWindowManager windowManager = getInstanceForWindow(window);
			if (windowManager != null) {
				return windowManager;
			}
			window = window.getOwner();
		}
		return null;

	}
A convenience method for getting the window for <code>component</code> and then calling
{@link #getInstanceForWindow(Window)}.

@param component The component for which to get the associated {@link DockingWindowManager}
           instance.
@return The {@link DockingWindowManager} instance associated with <code>component</code>
Ghidra/Framework/Docking/src/main/java/docking/DockingWindowManager.java