@Override
	public void paintIcon(Component c, Graphics g, int x, int y) {
		restartAnimation();
		iconList.get(currentIconIndex).paintIcon(c, g, x, y);
		component = c;
	}
best guess at how many timer invocations may happen before paint gets called
Ghidra/Framework/Docking/src/main/java/docking/util/AnimatedIcon.java