public static void install( String activationKeys ) {
		if( activationKeys == null )
			activationKeys = "ctrl shift alt X";

		KeyStroke keyStroke = KeyStroke.getKeyStroke( activationKeys );
		Toolkit.getDefaultToolkit().addAWTEventListener( e -> {
			if( e.getID() == KeyEvent.KEY_RELEASED &&
				((KeyEvent)e).getKeyCode() == keyStroke.getKeyCode() &&
				(((KeyEvent)e).getModifiersEx() & KEY_MODIFIERS_MASK) == (keyStroke.getModifiers() & KEY_MODIFIERS_MASK)  )
			{
				Window activeWindow = KeyboardFocusManager.getCurrentKeyboardFocusManager().getActiveWindow();
				RootPaneContainer rootPaneContainer = null;
				if( activeWindow instanceof RootPaneContainer )
					rootPaneContainer = (RootPaneContainer) activeWindow;
				else {
					// search for root pain container in children
					// (e.g. for Swing embedded into SWT)
					for( Component child : activeWindow.getComponents() ) {
						if( child instanceof RootPaneContainer ) {
							rootPaneContainer = (RootPaneContainer) child;
							break;
						}
					}
				}

				if( rootPaneContainer != null ) {
					JRootPane rootPane = rootPaneContainer.getRootPane();
					FlatInspector inspector = (FlatInspector) rootPane.getClientProperty( FlatInspector.class );
					if( inspector == null ) {
						inspector = new FlatInspector( rootPane );
						rootPane.putClientProperty( FlatInspector.class, inspector );
						inspector.setEnabled( true );
					} else {
						inspector.setEnabled( false );
						rootPane.putClientProperty( FlatInspector.class, null );
					}
				}
			}
		}, AWTEvent.KEY_EVENT_MASK );
	}
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