@Contract(pure = true)
  public static @NotNull String trimEnd(@NotNull String s, char suffix) {
    if (endsWithChar(s, suffix)) {
      return s.substring(0, s.length() - 1);
    }
    return s;
  }
@Contract(pure = true)
  public static @NotNull String trimEnd(@NotNull String s, char suffix)