static void addRecentStringToList(@Nullable @NlsSafe String str, @NotNull List<? super String> list) {
    if (str == null) {
      return;
    }

    list.remove(str);
    list.add(str);
    while (list.size() > MAX_RECENT_SIZE) {
      list.remove(0);
    }
  }
static void addRecentStringToList(@Nullable @NlsSafe String str, @NotNull List<? super String> list)