private File getArchiveFile(String postfix) {
    File tasksFolder = PathManager.getConfigDir().resolve(TASKS_FOLDER).toFile();
    if (!tasksFolder.exists()) {
      //noinspection ResultOfMethodCallIgnored
      tasksFolder.mkdirs();
    }
    String projectName = FileUtil.sanitizeFileName(myProject.getName());
    int maxNameLength = 240;
    projectName = projectName.length() <= maxNameLength ? projectName : projectName.substring(0, maxNameLength); // make sure archive file name does not exceed 255
    return new File(tasksFolder, projectName + postfix);
  }
private File getArchiveFile(String postfix)