private boolean isFocused() {
			KeyboardFocusManager kfm = KeyboardFocusManager.getCurrentKeyboardFocusManager();
			Component focusOwner = kfm.getFocusOwner();
			JComponent myComponent = getComponent();
			return focusOwner != null && SwingUtilities.isDescendingFrom(focusOwner, myComponent);
		}
Number of milliseconds to track user requests
Ghidra/Framework/Docking/src/main/java/docking/ComponentProvider.java