private void paintHolder(@NotNull Graphics g, @NotNull IconHolder holder) {
    boolean selected = holder.extension.isSelected();
    if ((ExperimentalUI.isNewUI() || selected) && holder.isClickable() && holder.icon != AllIcons.Actions.CloseHovered) {
      Color background;
      if (selected) {
        background = holder.hovered ? JBUI.CurrentTheme.SearchOption.BUTTON_SELECTED_HOVERED_BACKGROUND
                                    : JBUI.CurrentTheme.SearchOption.BUTTON_SELECTED_BACKGROUND;
      }
      else {
        background = holder.hovered ? JBUI.CurrentTheme.ActionButton.hoverBackground() : null;
      }
      if (background != null) {
        GraphicsUtil.setupAAPainting(g);
        int arc = DarculaUIUtil.BUTTON_ARC.get();
        g.setColor(background);
        g.fillRoundRect(holder.bounds.x, holder.bounds.y, holder.bounds.width, holder.bounds.height, arc, arc);
      }
    }
    holder.icon.paintIcon(getComponent(), g, holder.bounds.x + (holder.bounds.width - holder.icon.getIconWidth()) / 2,
                          holder.bounds.y + (holder.bounds.height - holder.icon.getIconHeight()) / 2);
  }
private void paintHolder(@NotNull Graphics g, @NotNull IconHolder holder)