code: public Set<Sense> getRelatedSenses(@NonNull Sense sense, @NonNull WordNetRelation relation) {
          return db
                     .getRelations(sense)
                     .entrySet()
                     .stream()
                     .filter(entry -> entry.getValue() == relation)
                     .map(Map.Entry::getKey)
                     .collect(Collectors.toSet());
      }
docs: Gets the lexical relations associated with the given sense.
  
  @param sense    The WordNet sense
  @param relation The desired relation
  @return A set of senses representing the sense with the given relation to the given sense