Source:
<code>public Image annotateImage(MarkerItem item, Image image) { ImageDescriptor[] descriptors = new ImageDescriptor[5]; if (item.getMarker() != null) { IMarker marker = item.getMarker(); if (marker != null) { String contextId = IDE.getMarkerHelpRegistry().getHelp(marker); if (contextId != null) { if (image == null) image = JFaceResources.getImage(Dialog.DLG_IMG_HELP); else { descriptors[IDecoration.TOP_RIGHT] = IDEWorkbenchPlugin .getIDEImageDescriptor(MarkerSupportInternalUtilities.IMG_MARKERS_HELP_DECORATION_PATH); } } if (IDE.getMarkerHelpRegistry().hasResolutions(marker)) { if (image == MarkerSupportInternalUtilities.getSeverityImage(IMarker.SEVERITY_WARNING)) { image = <START> WorkbenchPlugin.getDefault().getSharedImages() <END> .getImage(IDEInternalWorkbenchImages.IMG_OBJS_FIXABLE_WARNING); } else if (image == MarkerSupportInternalUtilities.getSeverityImage(IMarker.SEVERITY_ERROR)) { image = WorkbenchPlugin.getDefault().getSharedImages() .getImage(IDEInternalWorkbenchImages.IMG_OBJS_FIXABLE_ERROR); } else if (image == MarkerSupportInternalUtilities.getSeverityImage(IMarker.SEVERITY_INFO)) { image = WorkbenchPlugin.getDefault().getSharedImages() .getImage(IDEInternalWorkbenchImages.IMG_OBJS_FIXABLE_INFO); } else if (image != null) { descriptors[IDecoration.BOTTOM_RIGHT] = IDEWorkbenchPlugin.getIDEImageDescriptor( MarkerSupportInternalUtilities.IMG_MARKERS_QUICK_FIX_DECORATION_PATH); } if (image == null) { image = WorkbenchPlugin.getDefault().getSharedImages() .getImage(IDEInternalWorkbenchImages.IMG_ELCL_QUICK_FIX_ENABLED); } } if (descriptors[IDecoration.TOP_RIGHT] != null || descriptors[IDecoration.BOTTOM_RIGHT] != null) image = getImageManager().createImage(new DecorationOverlayIcon(image, descriptors)); } } return image; }</code><technical_language>extract WorkbenchPlugin.getDefault().getSharedImages() a local var</technical_language>

Target:
public Image annotateImage(MarkerItem item, Image image) { ImageDescriptor[] descriptors = new ImageDescriptor[5]; if (item.getMarker() != null) { IMarker marker = item.getMarker(); if (marker != null) { String contextId = IDE.getMarkerHelpRegistry().getHelp(marker); if (contextId != null) { if (image == null) image = JFaceResources.getImage(Dialog.DLG_IMG_HELP); else { descriptors[IDecoration.TOP_RIGHT] = IDEWorkbenchPlugin .getIDEImageDescriptor(MarkerSupportInternalUtilities.IMG_MARKERS_HELP_DECORATION_PATH); } } if (IDE.getMarkerHelpRegistry().hasResolutions(marker)) { ISharedImages sharedImages = WorkbenchPlugin.getDefault().getSharedImages(); if (image == MarkerSupportInternalUtilities.getSeverityImage(IMarker.SEVERITY_WARNING)) { image = sharedImages.getImage(IDEInternalWorkbenchImages.IMG_OBJS_FIXABLE_WARNING); } else if (image == MarkerSupportInternalUtilities.getSeverityImage(IMarker.SEVERITY_ERROR)) { image = sharedImages.getImage(IDEInternalWorkbenchImages.IMG_OBJS_FIXABLE_ERROR); } else if (image == MarkerSupportInternalUtilities.getSeverityImage(IMarker.SEVERITY_INFO)) { image = sharedImages.getImage(IDEInternalWorkbenchImages.IMG_OBJS_FIXABLE_INFO); } else if (image != null) { descriptors[IDecoration.BOTTOM_RIGHT] = IDEWorkbenchPlugin.getIDEImageDescriptor( MarkerSupportInternalUtilities.IMG_MARKERS_QUICK_FIX_DECORATION_PATH); } if (image == null) { image = sharedImages.getImage(IDEInternalWorkbenchImages.IMG_ELCL_QUICK_FIX_ENABLED); } } if (descriptors[IDecoration.TOP_RIGHT] != null || descriptors[IDecoration.BOTTOM_RIGHT] != null) image = getImageManager().createImage(new DecorationOverlayIcon(image, descriptors)); } } return image; }