code: public List<String> parseOntologyTermQueries(OntologyTerm ontologyTerm) {
      List<String> queryTerms =
          getOtLabelAndSynonyms(ontologyTerm)
              .stream()
              .map(this::processQueryString)
              .collect(Collectors.toList());
  
      for (OntologyTerm childOt : ontologyService.getChildren(ontologyTerm)) {
        double boostedNumber =
            Math.pow(0.5, ontologyService.getOntologyTermDistance(ontologyTerm, childOt));
        getOtLabelAndSynonyms(childOt)
            .forEach(synonym -> queryTerms.add(parseBoostQueryString(synonym, boostedNumber)));
      }
      return queryTerms;
    }
docs: Create a list of string queries based on the information collected from current ontologyterm
  including label, synonyms and child ontologyterms