@Override
  protected void onOSProcessTerminated(int exitCode) {
    if (myModality != ModalityState.nonModal()) {
      ProgressManager.getInstance().runProcess(() -> super.onOSProcessTerminated(exitCode), new EmptyProgressIndicator(myModality));
    }
    else {
      super.onOSProcessTerminated(exitCode);
    }
    deleteTempFiles(myFilesToDelete);
  }
@Override
  protected void onOSProcessTerminated(int exitCode)