private void writeShapeWithStyle(ShapeWithStyle shape, TagType tagType)
{
writeFillStyles(shape.getFillStyles(), tagType);
writeLineStyles(shape.getLineStyles(), tagType);
CurrentStyles currentStyles = new CurrentStyles();
currentStyles.styles = new Styles(shape.getFillStyles(), shape.getLineStyles());
currentStyles.numFillBits = requireUBCount(shape.getFillStyles().size());
currentStyles.numLineBits = requireUBCount(shape.getLineStyles().size());
writeShape(shape, tagType, currentStyles);
}