code: func (gm serverMethod) libImported(rootImportPath string) map[string]struct{} {
  	libs := map[string]struct{}{}
  
  	// req body
  	if lib := libImportPath(rootImportPath, gm.reqBody, globLibRootURLs); lib != "" {
  		libs[lib] = struct{}{}
  	}
  
  	// resp body
  	if lib := libImportPath(rootImportPath, gm.firstSuccessRespBodyRawType(), globLibRootURLs); lib != "" {
  		libs[lib] = struct{}{}
  	}
  	return libs
  }
docs: // return all libs imported by this method