code: func (r *GormRepository) checkNoWITIsMissing(ctx context.Context, s *ImportHelper) error {
  	type idType struct {
  		ID uuid.UUID `gorm:"column:id" sql:"type:uuid"`
  	}
  	var IDs []idType
  	query := fmt.Sprintf(`SELECT id FROM "%s" WHERE space_template_id = ?`, workitem.WorkItemType{}.TableName())
  	db := r.db.Raw(query, s.Template.ID.String()).Scan(&IDs)
  	if db.Error != nil {
  		return errs.Wrapf(db.Error, "failed to load all work item types for space template '%s'", s.Template.ID)
  	}
  	toBeFoundIDs := id.Map{}
  	for _, i := range IDs {
  		toBeFoundIDs[i.ID] = struct{}{}
  	}
  	for _, wit := range s.WITs {
  		delete(toBeFoundIDs, wit.ID)
  	}
  	if len(toBeFoundIDs) > 0 {
  		return errs.Errorf("work item types to be imported must not remove these existing work item types: %s", toBeFoundIDs)
  	}
  	return nil
  }
docs: // checkNoWITIsMissing returns an error if currently imported work item types
  // are missing already existing work item types.