void () { if (myCollectingStopped && myNotifications.isEmpty()) { if (myTaskNotification != null) { myTaskNotification.finished(new ProjectTaskResult(myAborted, myErrors, myWarnings)); } myOnFinished.run(); } }