String (TodoItem item, final String content) { StringJoiner joiner = new StringJoiner("\n"); joiner.add(getTodoPartText(content, item.getTextRange())); item.getAdditionalTextRanges().forEach(r -> joiner.add(getTodoPartText(content, r))); return joiner.toString(); }