public static Icon getDatastoreSpecificAnalysisJobIcon(final Datastore datastore) {
final int decorationSize = ICON_SIZE_MEDIUM;
final int totalWidth = ICON_SIZE_LARGE;
final int totalHeight = ICON_SIZE_LARGE + 6;
final Image datastoreIcon;
if (datastore == null) {
datastoreIcon = _imageManager.getImage(IconUtils.GENERIC_DATASTORE_IMAGEPATH, decorationSize);
} else {
final String datastoreImagePath = getDatastoreImagePath(datastore, false);
datastoreIcon = _imageManager.getImage(datastoreImagePath, decorationSize);
}
final Image jobIcon = _imageManager.getImage(MODEL_JOB, decorationSize);
final BufferedImage bufferedImage = new BufferedImage(totalWidth, totalHeight, BufferedImage.TYPE_INT_ARGB);
bufferedImage.getGraphics().drawImage(jobIcon, 0, 0, null);
bufferedImage.getGraphics().drawImage(datastoreIcon, totalWidth - decorationSize, totalHeight - decorationSize,
null);
return new ImageIcon(bufferedImage);
}