private static Point scale( Window window, Point pt ) {
		GraphicsConfiguration gc = window.getGraphicsConfiguration();
		if( gc == null )
			return pt;

		AffineTransform transform = gc.getDefaultTransform();
		int x = (int) Math.round( pt.x * transform.getScaleX() );
		int y = (int) Math.round( pt.y * transform.getScaleY() );
		return new Point( x, y );
	}
Checks whether native library is loaded/available.
<p>
<b>Note</b>: It is required to invoke this method before invoking any other
             method of this class. Otherwise, the native library may not be loaded.
flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatNativeLinuxLibrary.java