docs: @Pure
  	public String formatResourceRegion(XtextResource resource, int offset, int length) {
  		assert resource != null;
  		assert offset >= 0;
  		assert length >= 0;
  		try {
  			final ITextRegionAccess regionAccess = this.regionAccessBuilder.get().forNodeModel(resource).create();
  			final FormatterRequest formatterRequest = new FormatterRequest();
  			formatterRequest.setAllowIdentityEdits(false);
  			formatterRequest.setRegions(Collections.singleton(regionAccess.regionForOffset(offset, length)));
  			formatterRequest.setTextRegionAccess(regionAccess);
  			final List<ITextReplacement> replacements = this.formatter.format(formatterRequest);
  			return regionAccess.getRewriter().renderToString(replacements);
  		} catch (Exception exception) {
  			throw Exceptions.sneakyThrow(exception);
  		}
  	}