private final int myProcessHashCode;
public KarmaServer(@NotNull Project project, @NotNull KarmaServerSettings serverSettings) throws IOException {
myServerSettings = serverSettings;
myKarmaJsSourcesLocator = new KarmaJsSourcesLocator(serverSettings.getKarmaPackageDir());
myCoveragePeer = serverSettings.isWithCoverage() ? new KarmaCoveragePeer() : null;
KillableColoredProcessHandler processHandler = startServer(serverSettings);
myProcessHashCode = System.identityHashCode(processHandler.getProcess());
File configurationFile = myServerSettings.getConfigurationFile();
myState = new KarmaServerState(this, processHandler, configurationFile);
myProcessOutputArchive = new ProcessOutputArchive(processHandler);