code: func (m Methods) Imports() []string {
  	var pkgImports []string
  	for _, method := range m {
  		pkgImports = append(pkgImports, method.Imports...)
  	}
  	if len(pkgImports) > 0 {
  		pkgImports = uniqueNonEmptyStrings(pkgImports)
  		sort.Strings(pkgImports)
  	}
  	return pkgImports
  }
docs: // Imports returns a sorted list of package imports needed to satisfy the
  // signatures of all methods.