code: func (p *Plugin) GetProcessByPID(pid int) ProcessInstance {
  	for _, pr := range p.processes {
  		if pr.status.Pid == pid {
  			return pr
  		}
  	}
  	return nil
  }
docs: // GetProcessByPID uses process ID to find a desired instance