private static void triggerFocusGained(Component component) {
		FocusListener[] listeners = component.getFocusListeners();
		FocusEvent e = new FocusEvent(component, (int) System.currentTimeMillis());
		runSwing(() -> {
			for (FocusListener l : listeners) {
				l.focusGained(e);
			}
		});
	}
Simulates a focus event on the given component

@param component the component upon which to trigger focus
Ghidra/Framework/Docking/src/main/java/docking/test/AbstractDockingTest.java