OptionController () { OptionController controller = OptionController.of( shortName -> !myDisabledShortNames.contains(shortName), (shortName, value) -> setEnabled((boolean)value, shortName) ); for (Map.Entry<String, NamingConventionBean> entry : myNamingConventionBeans.entrySet()) { controller = controller.onPrefix(entry.getKey(), entry.getValue().getOptionController()); } return controller; }