The Rectangle element has properties for a border outline. If those are used, then the generated code should use BorderRectangle. But if they are not used, then we can fall back to just generating a Rectangle.