@Override
  public void readSettings(@NotNull Element node) throws InvalidDataException {
    myProblemsReported.clear();
    myConfigurations.clear();
    ConfigurationManager.readConfigurations(node, myConfigurations);
    Configuration previous = null;
    boolean sorted = true;
    for (Configuration configuration : myConfigurations) {
      if (configuration.getOrder() != 0 || previous != null && CONFIGURATION_COMPARATOR.compare(previous, configuration) > 0) {
        sorted = false;
        break;
      }
      previous = configuration;
    }
    if (sorted) {
      previous = null;
      for (Configuration configuration : myConfigurations) {
        if (previous != null && previous.getUuid().equals(configuration.getUuid())) {
          configuration.setOrder(previous.getOrder() + 1); // restore order
        }
        previous = configuration;
      }
    }
  }
@Override
  public void readSettings(@NotNull Element node)