void (@NotNull Process process) { LOG.debug("killing process tree"); final boolean destroyed = OSProcessUtil.killProcessTree(process); if (!destroyed) { if (!process.isAlive()) { LOG.warn("Process has been already terminated: " + myCommandLine); } else { LOG.warn("Cannot kill process tree. Trying to destroy process using Java API. Cmdline:\n" + myCommandLine); process.destroy(); } } }