private void notifyFinished() {
      if (myCollectingStopped && myNotifications.isEmpty()) {
        myPromise.setResult(myAborted && myErrors > 0 ? FAILED_AND_ABORTED :
                            myAborted ? TaskRunnerResults.ABORTED : 
                            myErrors > 0 ? TaskRunnerResults.FAILURE : 
                            TaskRunnerResults.SUCCESS);
      }
    }
private void notifyFinished()