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