class IconWithArrow implements Icon {

    private static final String ARROW_IMAGE_NAME = "org/openide/awt/resources/arrow.png"; //NOI18N
    private static final int GAP = 6;
    private final Icon orig;
    private final Icon arrow = ImageUtilities.image2Icon(ImageUtilities.loadImage(ARROW_IMAGE_NAME, false));
    private final boolean paintRollOver;

    public IconWithArrow(Icon orig, boolean paintRollOver) {
        this.orig = orig;
        this.paintRollOver = paintRollOver;
    }

    public static int getArrowAreaWidth() {
        return GAP / 2 + 5;
    }

    @Override
    public void paintIcon(Component c, Graphics g, int x, int y) {<FILL_FUNCTION_BODY>}

    @Override
    public int getIconWidth() {
        return orig.getIconWidth() + GAP + arrow.getIconWidth();
    }

    @Override
    public int getIconHeight() {
        return Math.max(orig.getIconHeight(), arrow.getIconHeight());
    }
}

        int height = getIconHeight();
        orig.paintIcon(c, g, x, y + (height - orig.getIconHeight()) / 2);

        arrow.paintIcon(c, g, x + GAP + orig.getIconWidth(), y + (height - arrow.getIconHeight()) / 2);

        if (paintRollOver) {
            Color brighter = UIManager.getColor("controlHighlight"); //NOI18N
            Color darker = UIManager.getColor("controlShadow"); //NOI18N
            if (null == brighter || null == darker) {
                brighter = c.getBackground().brighter();
                darker = c.getBackground().darker();
            }
            if (null != brighter && null != darker) {
                g.setColor(brighter);
                g.drawLine(x + orig.getIconWidth() + 1, y,
                    x + orig.getIconWidth() + 1, y + getIconHeight());
                g.setColor(darker);
                g.drawLine(x + orig.getIconWidth() + 2, y,
                    x + orig.getIconWidth() + 2, y + getIconHeight());
            }
        }
    
<no_super_class>