@Contract(pure = true)
  public static @NotNull String trimTrailing(@NotNull String string, char symbol) {
    int index = string.length() - 1;
    while (index >= 0 && string.charAt(index) == symbol) index--;
    return string.substring(0, index + 1);
  }
@Contract(pure = true)
  public static @NotNull String trimTrailing(@NotNull String string, char symbol)