Collection<EObject> scopeList = getFilteredContents(context, type);
// create the scopedElements from the EObjets in the scopeList
LinkedList<IEObjectDescription> scopedElements = new LinkedList<IEObjectDescription>();
Container base = (context instanceof Container ? (Container) context : null);
final IDLAttributeResolver resolver = IDLAttributeResolver.newResolver(base);
for (IEObjectDescription elm : Scopes.scopeFor(scopeList, resolver, IScope.NULLSCOPE).getContents()) {
scopedElements.add(elm);
}