private static TextContent extractRange(TextContent full, TextRange range) {
    return full.excludeRange(new TextRange(range.getEndOffset(), full.length())).excludeRange(new TextRange(0, range.getStartOffset()));
  }
private static TextContent extractRange(TextContent full, TextRange range)