private void invokePopup(final Component c, final int x, final int y) {
      if (myBuilder == null) return;

      if (myList.getSelectedIndices().length <= 1) {
        final int popupIndex = myList.locationToIndex(new Point(x, y));
        if (popupIndex >= 0) {
          myList.setSelectedIndex(popupIndex);
          IdeFocusManager.getGlobalInstance().doWhenFocusSettlesDown(() -> IdeFocusManager.getGlobalInstance().requestFocus(myList, true));
        }
      }

      final ActionGroup group = (ActionGroup)CustomActionsSchema.getInstance().getCorrectedAction(IdeActions.GROUP_COMMANDER_POPUP);
      final ActionPopupMenu popupMenu = ActionManager.getInstance().createActionPopupMenu(ActionPlaces.COMMANDER_POPUP, group);
      popupMenu.getComponent().show(c, x, y);
    }
private void invokePopup(final Component c, final int x, final int y)