protected static void paintIconImpl(Graphics g, ActionButtonComponent actionButton, Icon icon, int x, int y) {
    icon.paintIcon(actionButton instanceof Component ? (Component)actionButton : null, g, x, y);
  }
protected static void paintIconImpl(Graphics g, ActionButtonComponent actionButton, Icon icon, int x, int y)