private static void addCommitMessage(@NotNull List<? super String> recentMessages, @NotNull String comment) {
    if (recentMessages.size() >= MAX_STORED_MESSAGES) {
      recentMessages.remove(0);
    }
    recentMessages.add(comment);
  }
private static void addCommitMessage(@NotNull List<? super String> recentMessages, @NotNull String comment)