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