void () { if (getTargetComponent() == this) { IdeFocusManager.getGlobalInstance().doWhenFocusSettlesDown(() -> super.requestFocus()); return; } IdeFocusManager.getGlobalInstance().doWhenFocusSettlesDown(() -> IdeFocusManager.getGlobalInstance().requestFocus(getTargetComponent(), true)); }