public static String iconToString(Icon icon) {
		if (icon instanceof EmptyIcon) {
			int iconWidth = icon.getIconWidth();
			int iconHeight = icon.getIconHeight();
			if (iconWidth == STANDARD_EMPTY_ICON_SIZE && iconHeight == STANDARD_EMPTY_ICON_SIZE) {
				return EMPTY_ICON_STRING;
			}
			return EMPTY_ICON_STRING + "[size(" + iconWidth + "," + iconHeight + ")]";
		}

		if (icon instanceof UrlImageIcon urlIcon) {
			return urlIcon.getOriginalPath();
		}
		return GTheme.JAVA_ICON;
	}
Converts an icon to a string.
@param icon the icon to convert to a String
@return a String that represents the icon
Ghidra/Framework/Gui/src/main/java/generic/theme/IconValue.java