Border (boolean focused) { if (!focused) { return new EmptyBorder(getInsets()); } int arcSize = JBUIScale.scale(Registry.intValue("ide.link.button.focus.round.arc", 4)); return JBUI.Borders.compound( new EmptyBorder(getOutsideFrameInsets()), new RoundedLineBorder(JBUI.CurrentTheme.Link.FOCUSED_BORDER_COLOR, arcSize, FOCUS_THICKNESS), new EmptyBorder(getInsideFrameInsets())); }