docs: private Grammar cloneGrammarIntoNewResourceSet(final Grammar original) {
      final Resource originalResource = original.eResource();
      XtextResourceSet _xtextResourceSet = new XtextResourceSet();
      final XtextResourceSet clonedResourceSet = EcoreUtil2.<XtextResourceSet>clone(_xtextResourceSet, originalResource.getResourceSet());
      final Resource clonedResource = clonedResourceSet.getResource(originalResource.getURI(), false);
      EObject _head = IterableExtensions.<EObject>head(clonedResource.getContents());
      return ((Grammar) _head);
    }