private void showToolTip( Component c, int x, int y, int parentLevel ) {
		hidePopup();

		if( c == null || (window != null && !window.isActive()) )
			return;

		JToolTip tip = new JToolTip();
		tip.setTipText( buildToolTipText( c, parentLevel, showClassHierarchy ) );
		tip.putClientProperty( FlatClientProperties.POPUP_FORCE_HEAVY_WEIGHT, true );

		Point pt = new Point( x, y );
		SwingUtilities.convertPointToScreen( pt, rootPane.getGlassPane() );
		int tx = pt.x + UIScale.scale( 8 );
		int ty = pt.y + UIScale.scale( 16 );

		Dimension size = tip.getPreferredSize();

		// position the tip in the visible area
		GraphicsConfiguration gc = rootPane.getGraphicsConfiguration();
		if( gc != null ) {
			Rectangle visibleRect = gc.getBounds();
			if( tx + size.width > visibleRect.x + visibleRect.width )
				tx -= size.width + UIScale.scale( 16 );
			if( ty + size.height > visibleRect.y + visibleRect.height )
				ty -= size.height + UIScale.scale( 32 );
			if( tx < visibleRect.x )
				tx = visibleRect.x;
			if( ty < visibleRect.y )
				ty = visibleRect.y;
		}

		PopupFactory popupFactory = PopupFactory.getSharedInstance();
		popup = popupFactory.getPopup( c, tip, tx, ty );
		popup.show();
	}
Installs a key listener into the application that allows enabling and disabling
the UI inspector with the given keystroke (e.g. "ctrl shift alt X").

@param activationKeys a keystroke (e.g. "ctrl shift alt X"), or {@code null} to use "ctrl shift alt X"
flatlaf-extras/src/main/java/com/formdev/flatlaf/extras/FlatInspector.java