public static Dimension scale( Dimension dimension ) {
		initialize();
		return (dimension == null || scaleFactor == 1f)
			? dimension
			: (dimension instanceof UIResource
				? new DimensionUIResource( scale( dimension.width ), scale( dimension.height ) )
				: new Dimension          ( scale( dimension.width ), scale( dimension.height ) ));
	}
Scales the given dimension with the user scale factor.
<p>
If user scale factor is 1, then the given dimension is simply returned.
Otherwise, a new instance of {@link Dimension} or {@link DimensionUIResource}
is returned, depending on whether the passed dimension implements {@link UIResource}.
flatlaf-core/src/main/java/com/formdev/flatlaf/util/UIScale.java