code: public Set<DOCUMENT> query(@NonNull DOCUMENT document, @NonNull Predicate<? super DOCUMENT> filter) {
        return query(documentMapper.apply(document), filter);
     }
docs: Query list.
  
  @param document the document
  @param filter   the filter
  @return the list