private static boolean containsFocusOwner(ComponentProvider provider) {
		KeyboardFocusManager kfm = KeyboardFocusManager.getCurrentKeyboardFocusManager();
		Component focusOwner = kfm.getFocusOwner();
		if (focusOwner == null) {
			return false;
		}
		JComponent providerComponent = provider.getComponent();
		return SwingUtilities.isDescendingFrom(focusOwner, providerComponent);
	}
Called by the framework during startup to register actions that are shared throughout the 
tool.  See {@link SharedActionRegistry}.
@param tool the tool
@param toolActions the class to which the actions should be added
@param owner the shared action owner
Ghidra/Framework/Docking/src/main/java/docking/DockingWindowManager.java