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

		Graphics2D g2d = (Graphics2D) g;
		g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);

		try {
			g2d.translate(x, y);
			g2d.setColor(color);
			g2d.fill(shape);
		}
		finally {
			g2d.translate(-x, -y);
		}
	}
Creates a close icon.
@param isSmall false signals to use a 16x16 size; true signals to use an 8x8 size
@param color the color of the "x"
Ghidra/Framework/Docking/src/main/java/docking/CloseIcon.java