void (Graphics g, Component c, int width, int height) { GraphicsConfig config = GraphicsUtil.setupAAPainting(g); int radius; JBInsets outerInsets; if (IdeaPopupMenuUI.isPartOfPopupMenu(c)) { radius = JBUI.CurrentTheme.PopupMenu.Selection.ARC.get(); outerInsets = JBUI.CurrentTheme.PopupMenu.Selection.outerInsets(); } else if (IdeaPopupMenuUI.isMenuBarItem(c)) { outerInsets = DarculaMenuItemBorder.menuBarItemOuterInsets(); radius = 0; } else { radius = JBUI.CurrentTheme.Menu.Selection.ARC.get(); outerInsets = JBUI.CurrentTheme.Menu.Selection.outerInsets(); } g.fillRoundRect(outerInsets.left, outerInsets.top, width - outerInsets.width(), height - outerInsets.height(), radius, radius); config.restore(); }