docs: static SuggestedItem findClosestSuggestedItem(List<SuggestedItem> r, String query) {
          for(SuggestedItem curItem : r) {
              if(LOGGER.isLoggable(Level.FINE)) {
                  LOGGER.fine(String.format("item's searchUrl:%s;query=%s", curItem.item.getSearchUrl(), query));
              }
              if(curItem.item.getSearchUrl().contains(Util.rawEncode(query))) {
                  return curItem;
              }
          }
          
          // couldn't find an item with the query in the url so just
          // return the first one
          return r.get(0);        
      }