static @Nullable LinesCols storeLinesAndCols(@NotNull Document document, long range) {
    LineCol start = calcLineCol(document, TextRangeScalarUtil.startOffset(range));
    LineCol end = calcLineCol(document, TextRangeScalarUtil.endOffset(range));

    if (start == null || end == null) {
      return null;
    }
    return new LinesCols(start.line, start.col, end.line, end.col);
  }
static @Nullable LinesCols storeLinesAndCols(@NotNull Document document, long range)