code: public Set<Synset> getRelatedSynsets(@NonNull Synset node, @NonNull WordNetRelation relation) {
          return db
                     .getRelations(node)
                     .entrySet()
                     .stream()
                     .filter(entry -> entry.getValue() == relation)
                     .map(entry -> db.getSynsetFromId(entry.getKey()))
                     .collect(Collectors.toSet());
      }
docs: Gets the semantic relations associated with the given WordNetNode.
  
  @param node     The WordNet node
  @param relation The desired relation
  @return A set of synset representing the synsets with the given relation to the given node