private void debugPaintRect( Graphics g, Color color, Rectangle r ) {
		if( r == null )
			return;

		g.setColor( color );
		Point offset = SwingUtilities.convertPoint( this, 0, 0, window );
		g.drawRect( r.x - offset.x, r.y - offset.y, r.width - 1, r.height - 1 );
	}
Returns whether the menubar should be embedded into the title pane.
flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatTitlePane.java