@Contract(pure = true)
  public static @NotNull CharSequence first(@NotNull CharSequence text, int length, boolean appendEllipsis) {
    if (text.length() <= length) {
      return text;
    }
    if (appendEllipsis) {
      return text.subSequence(0, length) + "...";
    }
    return text.subSequence(0, length);
  }
@Contract(pure = true)
  public static @NotNull CharSequence first(@NotNull CharSequence text, int length, boolean appendEllipsis)