if (next.getResultCount() != null) {
label += " (" + next.getResultCount() + ")";
}
String value = next.getName();
int index = next.getName().toLowerCase().indexOf(expression);
SearchSuggestion suggestion = new SearchSuggestion(Kind.GlobalSavedSearch, label, value, next.getPattern(),
index, expression.length());
results.add(suggestion);
}
return results;
}