@Override
    public void finished(@SuppressWarnings("deprecation") @NotNull ProjectTaskResult taskResult) {
      myPromise.setResult(new Result() {
        @Override
        public boolean isAborted() {
          return taskResult.isAborted();
        }

        @Override
        public boolean hasErrors() {
          return taskResult.getErrors() > 0;
        }
      });
    }
@Override
    public void finished(@SuppressWarnings("deprecation") @NotNull ProjectTaskResult taskResult)