private Shape buildShape() {
		GeneralPath path = new GeneralPath();

		/*
		 	We use trial and error sizing.   This class allows clients to specify the icon size. At
		 	the time of writing, there were only 2 sizes in use: 16 and 8 pixels.   If more size
		 	needs arise, we can revisit how the values below are chosen.
		 */

		double margin = 2;
		double shapeSize = 11;
		double thickness = 1.7;
		if (size == 8) {
			margin = 0;
			shapeSize = 7;
			thickness = 1;
		}

		double p1x = margin;
		double p1y = margin + thickness;
		double p2x = margin + thickness;
		double p2y = margin;
		double p3x = margin + shapeSize;
		double p3y = margin + shapeSize - thickness;
		double p4x = margin + shapeSize - thickness;
		double p4y = margin + shapeSize;

		path.moveTo(p1x, p1y);
		path.lineTo(p2x, p2y);
		path.lineTo(p3x, p3y);
		path.lineTo(p4x, p4y);
		path.lineTo(p1x, p1y);

		p1x = margin + shapeSize - thickness;
		p1y = margin;
		p2x = margin + shapeSize;
		p2y = margin + thickness;
		p3x = margin + thickness;
		p3y = margin + shapeSize;
		p4x = margin;
		p4y = margin + shapeSize - thickness;

		path.moveTo(p1x, p1y);
		path.lineTo(p2x, p2y);
		path.lineTo(p3x, p3y);
		path.lineTo(p4x, p4y);
		path.lineTo(p1x, p1y);

		path.closePath();
		return path;
	}
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