@Override
    public boolean requestDefaultFocus() {
      final JComponent preferredFocusedComponent =
        IdeFocusTraversalPolicy.getPreferredFocusedComponent(myWrapper.tabbedPane.getComponent());
      if (preferredFocusedComponent != null) {
        if (!preferredFocusedComponent.requestFocusInWindow()) {
          IdeFocusManager.getGlobalInstance().doWhenFocusSettlesDown(() ->
                                                                       IdeFocusManager.getGlobalInstance()
                                                                         .requestFocus(preferredFocusedComponent, true));
        }
        return true;
      }
      return super.requestDefaultFocus();
    }
@Override
    public boolean requestDefaultFocus()