private Component getNext(Component component, boolean forward) {
		KeyboardFocusManager focusManager = KeyboardFocusManager.getCurrentKeyboardFocusManager();
		Window window = focusManager.getFocusedWindow();
		FocusTraversalPolicy policy = window.getFocusTraversalPolicy();
		if (forward) {
			return policy.getComponentAfter(window, component);
		}
		return policy.getComponentBefore(window, component);
	}
Transfers focus to the first component in the next/previous dockable component provider.
@param forward true to go to next provider, false to go to previous provider
Ghidra/Framework/Project/src/main/java/ghidra/framework/plugintool/PluginTool.java