public static void saveIconLocation( AnimatedIcon icon, Component c, int x, int y ) {
			if( !isAnimationEnabled( icon, c ) )
				return;

			AnimationSupport as = (AnimationSupport) ((JComponent)c).getClientProperty( icon.getClientPropertyKey() );
			if( as != null ) {
				as.x = x;
				as.y = y;
			}
		}
Animation support class that stores the animation state and implements the animation.
flatlaf-core/src/main/java/com/formdev/flatlaf/util/AnimatedIcon.java