public static Image map( Image image, Function<Image, Image> mapper ) {
		return image instanceof MultiResolutionImage
			? new MappedMultiResolutionImage( image, mapper )
			: mapper.apply( image );
	}
Support for multi-resolution images available since Java 9.

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