@Override
    public void processTerminated(@NotNull ProcessEvent event) {
      if (myXsltRunConfiguration.isSaveToFile()) {
        ApplicationManager.getApplication().invokeLater(() -> ApplicationManager.getApplication().runWriteAction(() -> {
          if (event.getExitCode() == 0) {
            if (myXsltRunConfiguration.myOpenInBrowser) {
              BrowserUtil.browse(myXsltRunConfiguration.myOutputFile);
            }
            if (myXsltRunConfiguration.myOpenOutputFile) {
              VirtualFile file = LocalFileSystem.getInstance().refreshAndFindFileByPath(myXsltRunConfiguration.myOutputFile);
              if (file != null) {
                file.refresh(false, false);
                PsiNavigationSupport.getInstance().createNavigatable(myXsltRunConfiguration.getProject(), file, -1).navigate(true);
                return;
              }
            }
            VirtualFileManager.getInstance().asyncRefresh();
          }
        }));
      }
    }
@Override
    public void processTerminated(@NotNull ProcessEvent event)