code: public List<Annotation> get(@NonNull AnnotationType type, @NonNull Span span, @NonNull Predicate<? super Annotation> filter) {
        return annotationSet.select(span, a -> filter.test(a) && a.isInstance(type) && a.overlaps(span));
     }
docs: Gets annotations of the given type that overlap with the given span and meet the given filter.
  
  @param type   the type of annotation
  @param span   the span to search for overlapping annotations
  @param filter the filter to use on the annotations
  @return All annotations of the given type on the document that overlap with the give span and meet the given
  filter.