@NotNull
  public static List<TextRange> expandToWholeLine(@NotNull CharSequence text, @Nullable TextRange range) {
    return expandToWholeLine(text, range, true);
  }
@NotNull
  public static List<TextRange> expandToWholeLine(@NotNull CharSequence text, @Nullable TextRange range)