public List<Span> getTermSpans(String term) {
        List<Span> spans = new ArrayList<>();
        getTermSpans(term, spans);
        return spans;
    }
Returns all spans, either this or any of the spans that are inherits this span that match the given term
container-search/src/main/java/com/yahoo/text/interpretation/Span.java