You can filter for the entity type & bundle in the getMatches() method.