void () { OptPane pane = pane( checkbox("one", "One"), checkbox("two", "Two", checkbox("three", "Three"), number("four", "Four", 0, 10))); OptControl four = pane.findControl("four"); assertTrue(four instanceof OptNumber); OptControl three = pane.findControl("three"); assertTrue(three instanceof OptCheckbox checkbox && checkbox.label().label().equals("Three")); }