private void checkAnimated(ImageIcon imgIcon) {
		if (imgIcon == null) {
			return;
		}

		setImageLoadingStatus(-1);

		ImageProducer ip = imgIcon.getImage().getSource();
		ImageConsumer ic = new ToolIconImageConsumer();

		ip.startProduction(ic);
		long waitTime = 0;
		long sleepTime = 50;
		try {
			// don't loop forever
			for (; !isImageLoadingComplete() && waitTime < MAX_IMAGE_LOAD_TIME; waitTime +=
				sleepTime) {
				Thread.sleep(sleepTime);
			}
		}
		catch (InterruptedException e) {
			// don't care--this will just report false for animated
		}
		ip.removeConsumer(ic);
		isAnimated = (checkStatus == ImageConsumer.SINGLEFRAMEDONE);
	}
Load the image as a resource, using the ResourceManager.
@param name name of the icon
Ghidra/Framework/Docking/src/main/java/docking/util/image/ToolIconURL.java