private static void forceTextComponentFocus(JTextComponent tc) {

		Object contextKey = getInstanceField("FOCUSED_COMPONENT", tc);
		AppContext context = AppContext.getAppContext();
		context.put(contextKey, tc);
	}
Really unusual method to call non-public libraries to force the text components to
focus on what we want and not what Java thinks the focus should be.

@param tc the text component
Ghidra/Framework/Docking/src/main/java/docking/test/AbstractDockingTest.java