docs: public <T extends EObject> void removeIncludingWhiteSpaces(EObject element, Class<T> type,
  			IModificationContext context) throws BadLocationException {
  		// Search the node
  		final T container = EcoreUtil2.getContainerOfType(element, type);
  		if (container == null) {
  			return;
  		}
  		final ICompositeNode node = NodeModelUtils.findActualNodeFor(container);
  		if (node == null) {
  			return;
  		}
  		// Compute region for the node
  		int offset = node.getOffset();
  		int length = node.getLength();
  		if (node.hasPreviousSibling()) {
  			final INode previousSibling = node.getPreviousSibling();
  			final int endOffset = previousSibling.getEndOffset();
  			length = length + (offset - endOffset);
  			offset = endOffset;
  		}
  		final IXtextDocument document = context.getXtextDocument();
  		// Include spaces in the region
  		final int docEndOffset = document.getLength();
  		int endOffset = offset + length;
  		while (offset > 0 && isBasicSpace(document.getChar(offset - 1))) {
  			--offset;
  			++length;
  		}
  		while (endOffset < docEndOffset && isBasicSpace(document.getChar(endOffset))) {
  			++endOffset;
  			++length;
  		}
  		document.replace(offset, length, ""); //$NON-NLS-1$
  	}