@Override
  public void actionPerformed(@NotNull AnActionEvent event) {
    if (!isAvailable()) return;

    var project = event.getProject();
    var dialog = new CreateDesktopEntryDialog(project);
    if (!dialog.showAndGet()) {
      return;
    }

    var globalEntry = dialog.myGlobalEntryCheckBox.isSelected();
    //noinspection UsagesOfObsoleteApi
    new Task.Backgroundable(project, ApplicationBundle.message("desktop.entry.progress")) {
      @Override
      public void run(@NotNull ProgressIndicator indicator) {
        try {
          createDesktopEntry(globalEntry);

          var title = IdeBundle.message("notification.title.desktop.entry.created");
          var message = ApplicationBundle.message("desktop.entry.success", ApplicationNamesInfo.getInstance().getProductName());
          new Notification("System Messages", title, message, NotificationType.INFORMATION).notify(getProject());
        }
        catch (Exception e) {
          reportFailure(e, getProject());
        }
      }
    }.queue();
  }
@Override
  public void actionPerformed(@NotNull AnActionEvent event)