List<String> (Splitter splitter, final String text) { final List<String> words = new ArrayList<>(); splitter.split(text, TextRange.allOf(text), textRange -> words.add(textRange.substring(text))); return words; }