void (@Nullable JComponent component) { if (component != null) { UiNotifyConnector.doWhenFirstShown(component, () -> { var focusManager = IdeFocusManager.findInstanceByComponent(component); focusManager.requestFocus(component, false); }); } }