}
@Override
protected RunContentDescriptor doExecute(@NotNull RunProfileState state, @NotNull final ExecutionEnvironment env) throws ExecutionException {
FileDocumentManager.getInstance().saveAllDocuments();
KarmaRunProfileState runProfileState = ObjectUtils.tryCast(state, KarmaRunProfileState.class);
if (runProfileState == null) {
return null;
}
final KarmaServer server = runProfileState.getServerOrStart(env.getExecutor());
if (server == null) {
return null;
}
KarmaCoveragePeer coveragePeer = getCoveragePeer(server);
KarmaCoverageStartupStatus status = coveragePeer.getStartupStatus();