List<OptionDescription> (@NotNull String configurableId, @NotNull Function<? super String, @NlsContexts.Command String> nameConverter) { List<ConfigurableBuilder.CheckboxField> boxes = JBIterable.from(myFields).filter(CheckboxField.class).toList(); return ContainerUtil.map(boxes, box -> new BooleanOptionDescription(nameConverter.apply(box.getTitle()), configurableId) { @Override public boolean isOptionEnabled() { return box.getAccessorValue(); } @Override public void setOptionState(boolean enabled) { box.setAccessorValue(enabled); } }); }