}
}
String elementID = EMFCoreUtil.getProxyID(element);
@SuppressWarnings("unchecked")
List<EditPart> associatedParts = viewer.findEditPartsForElement(
elementID, IGraphicalEditPart.class);
// perform the possible hierarchy disjoint -> take the top-most parts only
for (EditPart nextPart : associatedParts) {
EditPart parentPart = nextPart.getParent();
while (parentPart != null && !associatedParts.contains(parentPart)) {