@Override protected void beforeModelLinked(EObject model,IDiagnosticConsumer diagnosticsConsumer){
  ImportedNamesAdapter adapter=ImportedNamesAdapter.find(model.eResource());
  if (adapter != null)   adapter.clear();
  UnionMemberScope.clearCachedComposedMembers(model);
}

@ Override protected void beforeModelLinked ( EObject model , IDiagnosticConsumer diagnosticsConsumer ) { ImportedNamesAdapter adapter = ImportedNamesAdapter . find ( model . eResource ( ) ) ; if ( adapter != null ) adapter . clear ( ) ; UnionMemberScope . clearCachedComposedMembers ( model ) ; }
removes the imported names before linking and cleans other caches attached to the ast .
