private Set<String> resolveDocumentTypes(Query query) {
        // Assumption: Search definition name equals document name.
        return resolveDocumentTypes(query.getModel().getSources(), query.getModel().getRestrict(),
                                    searchDefinitions.keySet());
    }
Calls resolveDocumentTypes(query.getModel().getSources(), query.getModel().getRestrict())
container-search/src/main/java/com/yahoo/prelude/IndexFacts.java