code: protected void _format(SarlCapacity capacity, IFormattableDocument document) {
  		formatAnnotations(capacity, document, XbaseFormatterPreferenceKeys.newLineAfterClassAnnotations);
  		formatModifiers(capacity, document);
  
  		final ISemanticRegionsFinder regionFor = this.textRegionExtensions.regionFor(capacity);
  
  		document.append(regionFor.keyword(this.keywords.getCapacityKeyword()), ONE_SPACE);
  
  		document.surround(regionFor.keyword(this.keywords.getExtendsKeyword()), ONE_SPACE);
  		formatCommaSeparatedList(capacity.getExtends(), document);
  
  		formatBody(capacity, document);
  	}
docs: Format the given SARL capacity.
  
  @param capacity the SARL component.
  @param document the document.