void () { if (!myFocusable) return; JComponent toFocus = ObjectUtils.chooseNotNull(myPreferredFocusedComponent, mySpeedSearchAlwaysShown ? mySpeedSearchPatternField : null); if (toFocus != null) { IdeFocusManager.getGlobalInstance().doWhenFocusSettlesDown(() -> { if (!myDisposed) { IdeFocusManager.getGlobalInstance().requestFocus(toFocus, true); } }); } }