@Override
  public @NotNull List<AnAction> getActions() {
    List<AnAction> result = new ArrayList<>();
    List<AnAction> secondary = new ArrayList<>();
    for (AnAction each : myVisibleActions) {
      if (myActionGroup.isPrimary(each)) {
        result.add(each);
      }
      else {
        secondary.add(each);
      }
    }
    result.add(new Separator());
    result.addAll(secondary);
    return result;
  }
@Override
  public @NotNull List<AnAction> getActions()