code: public static boolean match(String keyword, TargetAtom atom) {
          return atom.getSubstitutedTerms().stream()
                  .anyMatch(t -> match(keyword, t));
  
      }
docs: A helper method to check a match