List<String> (String literalValue) { return Arrays.stream(ourPatternBasedSuggestions) .filter(suggestion -> suggestion.pattern.matcher(literalValue).matches()) .flatMap(suggestion -> suggestion.names.stream()).collect(Collectors.toList()); }