@Contract(pure = true)
  public static int offsetToLineNumber(@NotNull CharSequence text, int offset) {
    LineColumn lineColumn = offsetToLineColumn(text, offset);
    return lineColumn != null ? lineColumn.line : -1;
  }
@Contract(pure = true)
  public static int offsetToLineNumber(@NotNull CharSequence text, int offset)