class RangeConverter {

  @Nullable
  public static String format(@Nullable TextRange range) {
    if (range == null) {
      return null;
    }
    TextPointer start = range.start();
    TextPointer end = range.end();
    return start.line() + ":" + start.lineOffset() + ":" + end.line() + ":" + end.lineOffset();
  }

  private  RangeConverter();

}