public @NotNull List<@NotNull OptControl> allControls() {
    List<@NotNull OptControl> controls = new ArrayList<>();
    traverse(components, component -> {
      if (component instanceof OptControl control) {
        controls.add(control);
      }
      return true;
    });
    return controls;
  }
public @NotNull List<@NotNull OptControl> allControls()