void (final String text, final List<? super String> selectedWords, final int pos, int end, final String filter) { if (pos < end) { final Set<String> filters = SearchableOptionsRegistrar.getInstance().getProcessedWords(filter); final String[] words = text.substring(pos, end).split("[^\\pL&&[^-]]+"); for (String word : words) { if (filters.contains(PorterStemmerUtil.stem(Strings.toLowerCase(word)))) { selectedWords.add(word); } } } }