void (Graphics g) { setForeground(getTextColor()); super.paintComponent(g); if (getText() != null) { g.setColor(getTextColor()); if (myUnderline && myPaintUnderline) { Rectangle bounds = getTextBounds(); int lineY = getUI().getBaseline(this, getWidth(), getHeight()) + 1; g.drawLine(bounds.x, lineY, bounds.x + bounds.width, lineY); } if (g instanceof Graphics2D && isFocusOwner()) { g.setColor(JBUI.CurrentTheme.Link.FOCUSED_BORDER_COLOR); Rectangle bounds = getTextBounds(); int round = Registry.intValue("ide.link.button.focus.round.arc", 4); RectanglePainter.DRAW.paint((Graphics2D)g, bounds.x, bounds.y, bounds.width, bounds.height, JBUI.scale(round)); } } }