private static boolean overlapsHeavyWeightComponent( Component owner, Component contents, int x, int y ) {
		if( owner == null )
			return false;

		Window window = SwingUtilities.getWindowAncestor( owner );
		if( window == null )
			return false;

		Rectangle r = new Rectangle( new Point( x, y ), contents.getPreferredSize() );
		return overlapsHeavyWeightComponent( window, r );
	}
Checks whether the owner component returns a tooltip location in
JComponent.getToolTipLocation(MouseEvent).
flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatPopupFactory.java