private static void printFocusInformation() {
		DockingWindowManager winMgr = DockingWindowManager.getActiveInstance();
		ComponentPlaceholder info = winMgr.getFocusedComponent();
		DockableComponent dockableComp = null;
		if (info != null) {
			dockableComp = info.getComponent();
		}

		log.info("====================================");
		log.info("Active Docking Window Manager: " + winMgr.getRootFrame().getTitle() + ": " +
			System.identityHashCode(winMgr.getRootFrame()));
		if (info != null) {
			log.info("Focused Docking Window: " + info.getTitle() + ": " +
				System.identityHashCode(dockableComp));
		}
		else {
			log.info("Focused Docking Window: null");
		}

		log.info("");

		KeyboardFocusManager kfm = KeyboardFocusManager.getCurrentKeyboardFocusManager();
		log.info("Active Java Window: " + printComp(kfm.getActiveWindow()));
		log.info("Focused Java Window: " + printComp(kfm.getFocusedWindow()));
		log.info("Focused Java Component: " + printComp(kfm.getFocusOwner()));

		Object mouseOverObject = DockingWindowManager.getMouseOverObject();
		if (mouseOverObject instanceof Component) {
			log.info("Mouse-over Object: " + printComp((Component) mouseOverObject));
			log.info("Focusable?: " + ((Component) mouseOverObject).isFocusable());
		}
		log.info("");
	}
Prints to standard error the current focus information (active window, 
focused component, etc.).
Ghidra/Framework/Docking/src/main/java/docking/action/ShowFocusInfoAction.java