private ImageIcon getSmallIcon(ImageIcon unscaledIcon) {
		if (unscaledIcon.getIconHeight() == SMALL_ICON_SIZE &&
			unscaledIcon.getIconHeight() == SMALL_ICON_SIZE) {
			return unscaledIcon;
		}

		// can we find this icon in the desired size on disk?
		ImageIcon image = findCompatibleImageForSize(location, SMALL_ICON_SIZE);
		if (image != null) {
			return image;
		}

		return ResourceManager.getScaledIcon(unscaledIcon, SMALL_ICON_SIZE, SMALL_ICON_SIZE);
	}
Constructor

@param location filename for the icon (relative or absolute)
Ghidra/Framework/Docking/src/main/java/docking/util/image/ToolIconURL.java