public static List<Image> getResolutionVariants( Image image ) {
		return (image instanceof MultiResolutionImage)
			? ((MultiResolutionImage)image).getResolutionVariants()
			: Collections.singletonList( image );
	}
Support for multi-resolution images available since Java 9.

@author Karl Tauber
flatlaf-core/src/main/java9/com/formdev/flatlaf/util/MultiResolutionImageSupport.java