ivate static void writeConfigurations(@NotNull Element element,
                                          @NotNull Collection<? extends Configuration> configurations,
                                          @NotNull Collection<? extends Configuration> historyConfigurations) {
    for (Configuration configuration : configurations) {
      configuration.getMatchOptions().setScope(null);
      saveConfiguration(element, configuration);
    }

    for (Configuration historyConfiguration : historyConfigurations) {
      final Element infoElement = saveConfiguration(element, historyConfiguration);
      infoElement.setAttribute(SAVE_HISTORY_ATTR_NAME, "1");
    }
  }


ivate static void writeConfigurations(@NotNull Element element,
                                          @NotNull Collection<? extends Configuration> configurations,
                                          @NotNull Collection<? extends Configuration> historyConfigurations) {