void (@NotNull ProcessHandler processHandler) { ProcessListener restarterListener = ON_TERMINATION_RESTARTER_KEY.get(processHandler, null); if (restarterListener != null) { processHandler.removeProcessListener(restarterListener); ON_TERMINATION_RESTARTER_KEY.set(processHandler, null); } }