void (@NotNull Graphics2D g, double x, double y, double width, double height, Font font) { if (!Registry.is("ide.text.effect.new")) { int h = JBUIScale.scale(Registry.intValue("editor.bold.underline.height", 2)); RectanglePainter2D.FILL.paint(g, x, y, width, h); } else { paintUnderline(g, x, y, width, height, font, 2, this); } }