docs: protected TextEdit getDeclarationTextEdit(String newName, ResourceSet resourceSet) {
  		final EObject object = resourceSet.getEObject(this.uriProvider.apply(resourceSet), true);
  		if (object instanceof SarlScript) {
  			final ITextRegion region = getOriginalPackageRegion((SarlScript) object);
  			if (region != null) {
  				return new ReplaceEdit(region.getOffset(), region.getLength(), newName);
  			}
  		}
  		throw new RefactoringException("SARL script not loaded."); //$NON-NLS-1$
  	}