String (TodoItem todoItem) { StringJoiner joiner = new StringJoiner("\n"); JBIterable.of(todoItem.getTextRange()).append(todoItem.getAdditionalTextRanges()).forEach(range -> joiner.add(range.substring(myNewText))); return joiner.toString(); }