void (String title, Set<? super OptionDescription> configurableOptions, String path, boolean i18n) { int headStart = title.indexOf("<head>"); int headEnd = headStart >= 0 ? title.indexOf("</head>") : -1; if (headEnd > headStart) { title = title.substring(0, headStart) + title.substring(headEnd + "</head>".length()); } title = HTML_PATTERN.matcher(title).replaceAll(" "); Set<String> words = new HashSet<>(); SearchableOptionsRegistrarImpl.collectProcessedWordsWithoutStemming(title, words, Collections.emptySet()); title = title.replace(BundleBase.MNEMONIC_STRING, ""); title = getNonWordPattern(i18n).matcher(title).replaceAll(" "); for (@NlsSafe String option : words) { configurableOptions.add(new OptionDescription(option, title, path)); } }