public static String getIconName(Icon icon) {
		if (icon instanceof FileBasedIcon) {
			return ((FileBasedIcon) icon).getFilename();
		}
		if (icon instanceof ImageIcon) {
			return ((ImageIcon) icon).getDescription();
		}
		if (icon instanceof GIcon gIcon) {
			Icon delegateIcon = gIcon.getDelegate();
			String name = getIconName(delegateIcon);
			if (name != null) {
				return name;
			}
			return ((GIcon) icon).getId();
		}
		if (icon instanceof TranslateIcon) {
			return getIconName(((TranslateIcon) icon).getBaseIcon());
		}
		return icon.toString();
	}
Get the name of this icon.  The value is usually going to be the URL from which the icon 
was loaded

@param icon the icon for which the name is desired
@return the name
Ghidra/Framework/Gui/src/main/java/resources/ResourceManager.java