@Override
  public void writeSettings(@NotNull Element node) throws WriteExternalException {
    // need copy, because lock-free copy-on-write list doesn't support sorting
    final ArrayList<Configuration> configurations = new ArrayList<>(myConfigurations);

    // ordered like in UI by name and pattern order
    // (for easier textual diffing between inspection profiles, because the order doesn't change as long as the name doesn't change)
    Collections.sort(configurations, CONFIGURATION_COMPARATOR);
    ConfigurationManager.writeConfigurations(node, configurations);

    // no order attribute written
    for (Element child : node.getChildren()) {
      child.removeAttribute("order");
    }
  }
@Override
  public void writeSettings(@NotNull Element node)