@Override
			public void fillRect( int x, int y, int width, int height ) {
				// fix hard coded black color in HRuleView.paint() of '<hr noshade>'
				if( super.getColor() == Color.black &&
					StackUtils.wasInvokedFrom( "javax.swing.text.html.HRuleView", "paint", 4 ) )
				{
					super.setColor( FlatLaf.isLafDark() ? Color.lightGray : Color.darkGray );
					super.fillRect( x, y, width, height );
					super.setColor( Color.black );
				} else
					super.fillRect( x, y, width, height );
			}
Creates a graphics object and applies Y correction to string drawing methods.
If no Y correction is necessary, the passed in graphics object is returned.
flatlaf-core/src/main/java/com/formdev/flatlaf/util/HiDPIUtils.java