public List<Annotations> getAll(AnnotationClass annotationClass) {
        // TODO: This implementation is very inefficient because it unnecessarily collects for all classes
        return getAll().getOrDefault(annotationClass, List.of());
    }
Returns a list of all annotations of the given class that exists in the text. This will also return
all subannotations, even those that override their parent.
If there are none, an empty list is returned, never null. The returned list should not be modified.
container-search/src/main/java/com/yahoo/text/interpretation/Interpretation.java