REVIEW-4677: Avoid determining list of matching resolved dependency results twice.