@Override
      protected void actionsUpdated(boolean forced,
                                    @NotNull List<? extends AnAction> newVisibleActions) {
        super.actionsUpdated(forced, newVisibleActions);
        if (forced && !newVisibleActions.isEmpty() && getComponents().length > 0 && !wasFocusRequested) {
          Component obj = FocusUtil.findFocusableComponentIn(getComponents()[0], null);
          if (obj != null) {
            wasFocusRequested = true;
            IdeFocusManager.getGlobalInstance().requestFocus(obj, true);
          }
        }
      }
@Override
      protected void actionsUpdated(boolean forced,
                                    @NotNull List<? extends AnAction> newVisibleActions)