@NotNull ExecutionEnvironment env) {
if (status != null && status.isKarmaCoveragePackageNeededToBeInstalled()) {
server.getRestarter().requestRestart();
}
ExecutionConsole console = new KarmaCoverageConfigurationErrorConsole(env.getProject(), server, status);
final ProcessHandler processHandler = new NopProcessHandler();
processHandler.addProcessListener(new ProcessAdapter() {
@Override
public void startNotified(ProcessEvent event) {
processHandler.destroyProcess();
}
});
DefaultExecutionResult executionResult = new DefaultExecutionResult(console, processHandler);
RunContentBuilder contentBuilder = new RunContentBuilder(executionResult, env);
return contentBuilder.showRunContent(env.getContentToReuse());