@Override
	protected ImageIcon createImageIcon() {
		Icon sourceIcon = getSourceIcon();
		Image image = createImage();
		int width = sourceIcon.getIconWidth();
		int height = sourceIcon.getIconHeight();

		BufferedImage flippedImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
		Graphics2D graphics = (Graphics2D) flippedImage.getGraphics();
		if (leftToRight) {
			graphics.drawImage(image, width, 0, -width, height, null);
		}
		else {
			graphics.drawImage(image, 0, height, width, -height, null);
		}
		graphics.dispose();
		return new ImageIcon(flippedImage, getFilename());
	}
Construct a icon that is reflected either left to right or upside down.
@param baseIcon base icon
@param leftToRight true flips x values, false flips y values
Ghidra/Framework/Gui/src/main/java/resources/icons/ReflectedIcon.java