/**
* @generated
*/
private static Collection getOutgoingTypeModelFacetLinks_ExcludesRelation_4010(
BaseFeatureNode source) {
Diagram container = null;
// Find container element for the link.
// Climb up by containment hierarchy starting from the source
// and return the first element that is instance of the container class.
for (EObject element = source; element != null && container == null; element = element
.eContainer()) {
if (element instanceof Diagram) {
container = (Diagram) element;
}
}
if (container == null) {
return Collections.EMPTY_LIST;
}
Collection result = new LinkedList();
for (Iterator links = container.getDiagramElements().iterator(); links
.hasNext();) {
EObject linkObject = (EObject) links.next();
if (false == linkObject instanceof ExcludesRelation) {
continue;
}