void (RunContentDescriptor descriptor) { ProcessHandler processHandler = descriptor.getProcessHandler(); LOG.debug("Process started: ", processHandler); if (descriptorProcessor != null) { descriptorProcessor.accept(descriptor); } assertNotNull(processHandler); processHandler.addProcessListener(new ProcessAdapter() { @Override public void startNotified(@NotNull ProcessEvent event) { LOG.debug("Process notified: ", processHandler); } @Override public void processTerminated(@NotNull ProcessEvent event) { LOG.debug("Process terminated: exitCode: ", event.getExitCode(), "; text: ", event.getText(), "; process: ", processHandler); } @Override public void onTextAvailable(@NotNull ProcessEvent event, @NotNull Key outputType) { LOG.debug(outputType + ": " + event.getText()); } }); refRunContentDescriptor.set(descriptor); }