@Override
  public Insets getBorderInsets(Component c) {
    JBInsets result;

    if (IdeaPopupMenuUI.isPartOfPopupMenu(c)) {
      result = JBUI.CurrentTheme.PopupMenu.Selection.innerInsets();
      if (ExperimentalUI.isNewUI()) {
        result.top = 0;
        result.bottom = 0;

        // For backward compatibility outerInsets is NOT part of border in old UI
        result = JBInsets.addInsets(result, JBUI.CurrentTheme.PopupMenu.Selection.outerInsets());
      }
    }
    else if (IdeaPopupMenuUI.isMenuBarItem(c)) {
      result = menuBarItemInnerInsets();
    }
    else {
      result = JBUI.CurrentTheme.Menu.Selection.innerInsets();
      if (ExperimentalUI.isNewUI()) {
        result.top = 0;
        result.bottom = 0;
        result = JBInsets.addInsets(result, JBUI.CurrentTheme.Menu.Selection.outerInsets());
      }
    }

    return result.asUIResource();
  }
@Override
  public Insets getBorderInsets(Component c)