private static void createSpeedSearchActions(@NotNull ActionGroup actionGroup,
                                               @NotNull List<? super AnAction> speedSearchActions,
                                               boolean isFirstLevel) {
    if (!isFirstLevel) speedSearchActions.add(Separator.create(actionGroup.getTemplatePresentation().getText()));

    for (AnAction child : actionGroup.getChildren(null)) {
      if (!isFirstLevel && !(child instanceof ActionGroup || child instanceof Separator || child instanceof SpeedsearchAction)) {
        speedSearchActions.add(createSpeedSearchWrapper(child));
      }
      else if (child instanceof ActionGroup) {
        createSpeedSearchActions((ActionGroup)child, speedSearchActions, isFirstLevel && !((ActionGroup)child).isPopup());
      }
    }
  }
private static void createSpeedSearchActions(@NotNull ActionGroup actionGroup,
                                               @NotNull List<? super AnAction> speedSearchActions,
                                               boolean isFirstLevel)