code: Map<String, Double> findMatchQueries(
        String matchedWordsString, Map<String, String> collectExpandedQueryMap) {
      Map<String, Double> qualifiedQueries = new HashMap<>();
      Set<String> matchedWords = splitIntoTerms(matchedWordsString);
      for (Entry<String, String> entry : collectExpandedQueryMap.entrySet()) {
        Set<String> wordsInQuery = splitIntoTerms(entry.getKey());
        if (wordsInQuery.containsAll(matchedWords)) {
          qualifiedQueries.put(
              entry.getKey(),
              NGramDistanceAlgorithm.stringMatching(matchedWordsString, entry.getKey()));
        }
      }
      return qualifiedQueries;
    }
docs: This method is able to find the queries that are used in the matching. Only queries that
  contain all matched words are potential queries.
  
  @return a map of potential queries and their matching scores