docs: protected String applyTextReplacements(Iterable<ITextReplacement> replacements) {
  		ITextSegment region = getRegion();
  		String input = region.getText();
  		ArrayList<ITextReplacement> list = Lists.newArrayList(replacements);
  		Collections.sort(list);
  		int startOffset = region.getOffset();
  		int lastOffset = 0;
  		StringBuilder result = new StringBuilder();
  		for (ITextReplacement r : list) {
  			int offset = r.getOffset() - startOffset;
  			result.append(input.subSequence(lastOffset, offset));
  			result.append(r.getReplacementText());
  			lastOffset = offset + r.getLength();
  		}
  		result.append(input.subSequence(lastOffset, input.length()));
  		return result.toString();
  	}