@Override
  public void actionPerformed(@NotNull AnActionEvent event) {
    VirtualFile file = FileChooser.chooseFile(FileChooserDescriptorFactory.createSingleFolderDescriptor(),
                                              event.getProject(),
                                              null);
    if (file == null) {
      return;
    }

    List<IntentionActionMetaData> list = IntentionManagerSettings.getInstance().getMetaData();
    File root = VfsUtilCore.virtualToIoFile(file);
    Element el = new Element("root");
    Map<String, Element> categoryMap = new HashMap<>();
    for (IntentionActionMetaData metaData : list) {
      try {
        Element metadataElement = new Element("intention");
        metadataElement.setAttribute("family", metaData.getFamily());
        metadataElement.setAttribute("description", metaData.getDescription().getText());

        String key = StringUtil.join(metaData.myCategory, ".");
        Element element = getCategoryElement(categoryMap, el, metaData, key, metaData.myCategory.length - 1);
        element.addContent(metadataElement);
      }
      catch (IOException e1) {
        e1.printStackTrace();
      }
    }

    try {
      JDOMUtil.write(el, root.toPath().resolve("intentions.xml"));
    }
    catch (IOException e) {
      e.printStackTrace();
    }
  }
@Override
  public void actionPerformed(@NotNull AnActionEvent event)