Vaadin8 ColorPicker doesn't have caption in FormLayout

If I add a ColorPicker to a FormLayout, there is no caption in the left column. How can I add one? ColorPicker.setCaption() doesn’t help, it only adds displays the caption on the actual color picker button.

ColorPicker color = new ColorPicker();
FormLayout form = new MFormLayout(color);

One ancient API design decision from history that all components have setCaption method, but some components may handle the caption themselves instead of displaying it on the layout - ColorPicker seems to be one of those. You could wrap the picker component in a layout and set the caption for the layout.

CssLayout pickerWrapper = new CssLayout(colorPicker);
pickerWrapper .setCaption("Your caption");
formLayout.addComponent(pickerWrapper );