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