@NotNull KarmaServer server,
@Nullable Disposable parentDisposable) {
myServer = server;
myProcessOutputArchive = server.getProcessOutputArchive();
GlobalSearchScope scope = GlobalSearchScope.allScope(project);
TextConsoleBuilderImpl builder = new TextConsoleBuilderImpl(project, scope);
builder.setUsePredefinedMessageFilter(false);
builder.addFilter(new BaseNodeJSFilter(project));
myConsole = builder.getConsole();
if (parentDisposable != null) {
Disposer.register(parentDisposable, myConsole);
}
}