final int adornmentFlags = computeAdornmentFlags(obj);
if (adornmentFlags != 0) {
final ImageDescriptor baseImage = new ImageImageDescriptor(image);
final Rectangle bounds = image.getBounds();
return ErlideUIPlugin.getImageDescriptorRegistry().get(
new ErlangElementImageDescriptor(baseImage, adornmentFlags,
new Point(bounds.width, bounds.height)));
}
return image;
}