}
public ImageDescriptor getImageDescriptor(DefElementDescriptor elementDesc, Point imageSize,
ElementIconsStyle iconStyle) {
assertNotNull(iconStyle);
EArcheType archeType = elementDesc.getArcheType();
int elementFlags = elementDesc.elementFlags;
if(archeType == null) {
// archetype can be null if elementFlags is somehow wrongly created
// for example, can happen if elementFlags is serialized/deserialized with incompatible DDT versions
return DeeImages.getIDEInternalErrorImageDescriptor();