private static ListPopupStep createStep(
        String title,
        @NotNull ActionGroup actionGroup,
        @NotNull DataContext dataContext,
        boolean showNumbers,
        boolean useAlphaAsNumbers,
        boolean showDisabledActions,
        boolean honorActionMnemonics,
        Condition<AnAction> preselectActionCondition,
        @Nullable String actionPlace) {
      final Component component = PlatformDataKeys.CONTEXT_COMPONENT.getData(dataContext);
      LOG.assertTrue(component != null, "dataContext has no component for new ListPopupStep");

      final ActionStepBuilder builder =
          new ActionStepBuilder(
              dataContext,
              showNumbers,
              useAlphaAsNumbers,
              showDisabledActions,
              honorActionMnemonics);
      if (actionPlace != null) {
        builder.setActionPlace(actionPlace);
      }
      builder.buildGroup(actionGroup);
      final List<ActionItem> items = builder.getItems();

      return new ActionPopupStep(
          items,
          title,
          component,
          showNumbers || honorActionMnemonics && itemsHaveMnemonics(items),
          preselectActionCondition,
          false,
          showDisabledActions);
    }
 @NotNull
 private static List<ActionItem> makeActionItemsFromActionGroup(
     @NotNull ActionGroup actionGroup,
     @NotNull DataContext dataContext,
     boolean showNumbers,
     boolean useAlphaAsNumbers,
     boolean showDisabledActions,
     boolean honorActionMnemonics) {
   final ActionStepBuilder builder =
       new ActionStepBuilder(
           dataContext, showNumbers, useAlphaAsNumbers, showDisabledActions, honorActionMnemonics);
   builder.buildGroup(actionGroup);
   return builder.getItems();
 }