@Override
  public void attach(@NotNull ProcessHandler processHandler) {
    processHandler.putUserData(KEY, this);
    execute(() -> {
      int pid = -1;
      if (SystemInfo.isUnix && processHandler instanceof BaseOSProcessHandler) {
        pid = (int)((BaseOSProcessHandler)processHandler).getProcess().pid();
      }
      synchronized (myLock) {
        myPid = pid;
      }
    });
  }
@Override
  public void attach(@NotNull ProcessHandler processHandler)