private static void showPopupAndFixLocation( Popup popup, Window popupWindow ) {
		if( popupWindow != null ) {
			// remember location of heavy weight popup window
			int x = popupWindow.getX();
			int y = popupWindow.getY();

			popup.show();

			// restore popup window location if it has changed
			// (probably scaled when screens use different scale factors)
			if( popupWindow.getX() != x || popupWindow.getY() != y )
				popupWindow.setLocation( x, y );
		} else
			popup.show();
	}
Shows the given popup and, if necessary, fixes the location of a heavy weight popup window.
<p>
On a dual screen setup, where screens use different scale factors, it may happen
that the window location changes when showing a heavy weight popup window.
E.g. when opening a dialog on the secondary screen and making combobox popup visible.
<p>
This is a workaround for https://bugs.openjdk.java.net/browse/JDK-8224608
flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatPopupFactory.java