private static boolean isAnimationEnabled( AnimatedIcon icon, Component c ) {
			return Animator.useAnimation() && icon.isAnimationEnabled() && c instanceof JComponent;
		}
Animation support class that stores the animation state and implements the animation.
flatlaf-core/src/main/java/com/formdev/flatlaf/util/AnimatedIcon.java