void (SearchableOptionsRegistrar registrar, Map<String, Set<OptionDescription>> options, FileTemplate[] templates, boolean splitByResourcePath) { for (FileTemplate template : templates) { String module = splitByResourcePath && template instanceof BundledFileTemplate ? getModuleByTemplate((BundledFileTemplate)template) : ""; collectOptions(registrar, options.computeIfAbsent(module, __ -> new TreeSet<>()), template.getName(), null); } }