code: func SetStates(p *dt.Plugin, states [][]dt.State) {
  	p.States = []dt.State{}
  	for _, ss := range states {
  		p.States = append(p.States, ss...)
  	}
  }
docs: // SetStates is a convenience function provided to match the API of NewKeywords
  // and AppendTrigger.