void (@NotNull ProcessHandler processHandler) { if (processHandler instanceof KillableProcessHandler) { if (((KillableProcessHandler)processHandler).canKillProcess()) { ((KillableProcessHandler)processHandler).killProcess(); } } }