code: func collapseAggregateErrors(errors []error) error {
  	if len(errors) == 0 {
  		return nil
  	}
  	if len(errors) == 1 {
  		return errors[0]
  	}
  
  	allNoMatchErrors := true
  	for _, err := range errors {
  		allNoMatchErrors = allNoMatchErrors && IsNoMatchError(err)
  	}
  	if allNoMatchErrors {
  		return errors[0]
  	}
  
  	return utilerrors.NewAggregate(errors)
  }
docs: // collapseAggregateErrors returns the minimal errors.  it handles empty as nil, handles one item in a list
  // by returning the item, and collapses all NoMatchErrors to a single one (since they should all be the same)