@Override
  public void apply() {
    copyTypeMap();

    ApplicationManager.getApplication().runWriteAction(() -> {
      if (!myFileTypeManager.isIgnoredFilesListEqualToCurrent(myIgnoreFilesPanel.getValues())) {
        myFileTypeManager.setIgnoredFilesList(myIgnoreFilesPanel.getValues());
      }
      myFileTypeManager.setPatternsTable(myTempFileTypes, myTempPatternsTable);
      TemplateDataLanguagePatterns.getInstance().setAssocTable(myTempTemplateDataLanguages);
    });
  }
@Override
  public void apply()