void (final Graphics g, final JComponent jcomponent) { Rectangle bounds = popupMenu.getBounds(); g.setColor(popupMenu.getBackground()); g.fillRect(bounds.x, bounds.y, bounds.width, bounds.height); if (!isUnderPopup(jcomponent) || isRoundBorder() || SystemInfoRt.isWindows) { return; } g.setColor(JBColor.namedColor("Menu.borderColor", new JBColor(Gray.xCD, Gray.x51))); g.drawRect(bounds.x, bounds.y, bounds.width, bounds.height); }