code: @Override
  	protected void doLinking() {
  		IParseResult parseResult = getParseResult();
  		if (parseResult == null || parseResult.getRootASTElement() == null)
  			return;
  
  		XtextLinker castedLinker = (XtextLinker) getLinker();
  		castedLinker.discardGeneratedPackages(parseResult.getRootASTElement());
  	}
docs: Overridden to do only the clean-part of the linking but not
  the actual linking. This is deferred until someone wants to access
  the content of the resource.