private void onTaskFinished(boolean wasCancelled) {
    TransactionGuard.submitTransaction(getProject(), () -> {
      try {
        afterExecution(wasCancelled);
      }
      finally {
        if (myProject != null) {
          StoreReloadManager.Companion.getInstance(myProject).unblockReloadingProjectOnExternalChanges();
        }
      }
    });
  }
private void onTaskFinished(boolean wasCancelled)