OptionController () { return super.getOptionController() .onValue("MODULES_SETS_LOADED_TOGETHER", () -> StreamEx.of(MODULES_SETS_LOADED_TOGETHER).map(set -> String.join(",", set.modules)).toMutableList(), newList -> { MODULES_SETS_LOADED_TOGETHER.clear(); StreamEx.of(newList).map(line -> { ModulesSet set = new ModulesSet(); set.modules = StreamEx.split(line, ",").toCollection(LinkedHashSet::new); return set; }).into(MODULES_SETS_LOADED_TOGETHER); myModuleSetByModuleName.drop(); }); }