public static ImageIcon getImageIcon(Icon icon) {
		if (icon instanceof ImageIcon) {
			return (ImageIcon) icon;
		}
		if (icon instanceof GIcon) {
			return ((GIcon) icon).getImageIcon();
		}
		return new DerivedImageIcon(icon);
	}
Returns an {@link ImageIcon} for the given icon.  If the value is already an ImageIcon, then
that object is returned; otherwise, an ImageIcon will be created the <a href="#safe">safe</a>
way.
@param icon The icon to convert
@return the new icon
Ghidra/Framework/Gui/src/main/java/resources/ResourceManager.java