@ApiStatus.Internal
  protected final void replace(@NotNull AnAction originalAction, @NotNull AnAction newAction) {
    if (mySecondaryActions != null) {
      if (mySecondaryActions.contains(originalAction)) {
        mySecondaryActions.remove(originalAction);
        mySecondaryActions.add(newAction);
      }
    }
  }
@ApiStatus.Internal
  protected final void replace(@NotNull AnAction originalAction, @NotNull AnAction newAction)