@Override
  public List<AnAction> promote(@NotNull List<? extends AnAction> actions, @NotNull DataContext context) {
    List<AnAction> newList = new ArrayList<>(actions);
    newList.sort(Comparator.comparingInt(action -> {
      if (action instanceof BraceOrQuoteOutAction) return 0;
      else if (action instanceof TabAction || action instanceof NextParameterAction || action instanceof EmacsStyleIndentAction) return 1;
      else return -1;
    }));
    return newList;
  }
@Override
  public List<AnAction> promote(@NotNull List<? extends AnAction> actions, @NotNull DataContext context)