private static @NotNull JumpTask @NotNull [] convertToJumpTasks(final @NotNull List<AnAction> actions) {
    final String launcherFileName = ApplicationNamesInfo.getInstance().getScriptName() + "64.exe";
    final String launcherPath = Paths.get(PathManager.getBinPath(), launcherFileName).toString();

    final @NotNull JumpTask @NotNull [] result = new JumpTask[actions.size()];

    int i = 0;
    for (final var action : actions) {
      if (!(action instanceof ReopenProjectAction reopenProjectAction)) {
        LOG.debug("Failed to convert an action \"" + action + "\" to Jump Task: the action is not ReopenProjectAction");
        continue;
      }

      final @SystemIndependent String projectPath = reopenProjectAction.getProjectPath();
      final @SystemDependent String projectPathSystem = PathUtil.toSystemDependentName(projectPath);

      if (Strings.isEmptyOrSpaces(projectPathSystem)) {
        LOG.debug("Failed to convert a ReopenProjectAction \"" + reopenProjectAction +
                  "\" to Jump Task: path to the project is empty (\"" + projectPathSystem + "\")");
        continue;
      }

      final @NotNull String taskTitle;
      final @NotNull String taskTooltip;
      {
        final @Nullable String presentationText;
        final @Nullable String projectName;

        if (!Strings.isEmptyOrSpaces(presentationText = reopenProjectAction.getProjectDisplayName())) {
          taskTitle = presentationText;
          taskTooltip = presentationText + " (" + projectPathSystem + ")";
        }
        else if (!Strings.isEmptyOrSpaces(projectName = reopenProjectAction.getProjectNameToDisplay())) {
          taskTitle = projectName;
          taskTooltip = projectName + " (" + projectPathSystem + ")";
        }
        else {
          taskTitle = projectPathSystem;
          taskTooltip = projectPathSystem;
        }
      }

      final String taskArgs = "\"" + projectPathSystem + "\"";

      result[i++] = new JumpTask(taskTitle, launcherPath, taskArgs, taskTooltip);
    }

    if (i < result.length) {
      return Arrays.copyOf(result, i);
    }

    return result;
  }
private static @NotNull JumpTask @NotNull [] convertToJumpTasks(final @NotNull List<AnAction> actions)