private void showPopup(AnActionEvent e, DefaultActionGroup group) {
    var count = group.getChildrenCount();
    if (!myShowPopupWithNoActions && count == 0) return;

    JBPopupFactory.ActionSelectionAid aid = getAidMethod();
    if (aid == JBPopupFactory.ActionSelectionAid.ALPHA_NUMBERING) {
      // Exclude separators. Do it only here to avoid getting children unless necessary.
      count = (int) Arrays.stream(group.getChildren(e)).filter(child -> !(child instanceof Separator)).count();
      // Alphanumeric mnemonics are pointless with <= 10 items and don't work well with huge lists.
      if (count < 11 || count > 36) {
        aid = JBPopupFactory.ActionSelectionAid.NUMBERING;
      }
    }

    ListPopup popup = JBPopupFactory.getInstance().createActionGroupPopup(
      getPopupTitle(e), group, e.getDataContext(), aid, true, null, -1,
      preselectAction(), myActionPlace);

    showPopup(e, popup);
  }
private void showPopup(AnActionEvent e, DefaultActionGroup group)