void () { OptPane pane = pane(checkbox("nested", "Nested")); OptPane outer = pane(pane.asCheckbox("outer", "Outer")); assertTrue(outer.findControl("nested") instanceof OptCheckbox checkbox && checkbox.label().label().equals("Nested")); }