private static void paintIconImpl( AnimatedIcon icon, Component c, Graphics g, int x, int y, AnimationSupport as ) {
			float value = (as != null) ? as.animatedValue : icon.getValue( c );
			icon.paintIconAnimated( c, g, x, y, value );
		}
Animation support class that stores the animation state and implements the animation.
flatlaf-core/src/main/java/com/formdev/flatlaf/util/AnimatedIcon.java