ImageDescriptor baseImage = getBaseImageDescriptor(binding, imageFlags);
if (baseImage != null) {
int adornmentFlags = getAdornmentFlags(binding);
Point size = ((imageFlags & ScriptElementImageProvider.SMALL_ICONS) != 0) ? ScriptElementImageProvider.SMALL_SIZE
: ScriptElementImageProvider.BIG_SIZE;
return new PHPElementImageDescriptor(baseImage, adornmentFlags,
size);
}
return null;
}