introduce DocumentTypeMatcher and enhance InputProvider API to expose
documents by type