void (@NotNull String executorId, @NotNull ExecutionEnvironment env, @NotNull ProcessHandler handler, int exitCode) { if (mode.equals(WAIT_FOR_PROCESS_TERMINATED)) { timer.stop(); long executionTime = timer.getTotalTime(); context.message("processTerminated in: " + env + ": " + executionTime, getLine()); if (env.equals(myExecutionEnvironment)) { if (exitCode == 0) { actionCallback.setDone(); } else { actionCallback.reject("Run configuration is finished with exitCode: " + exitCode); } connection.disconnect(); } } }