@Contract(pure = true)
  public static @NotNull String trimMiddle(@NotNull String text, int maxLength) {
    return shortenTextWithEllipsis(text, maxLength, maxLength >> 1, true);
  }
@Contract(pure = true)
  public static @NotNull String trimMiddle(@NotNull String text, int maxLength)