protected static Element findSchemeRoot(@NotNull Element rootElement) throws SchemeImportException {
    String rootName = rootElement.getName();
    //
    // Project code style 172.x and earlier
    //
    if ("project".equals(rootName)) {
      Element child = rootElement.getChild("component");
      if (child != null && "ProjectCodeStyleSettingsManager".equals(child.getAttributeValue("name"))) {
        child = child.getChild("option");
        if (child != null && "PER_PROJECT_SETTINGS".equals(child.getAttributeValue("name"))) {
          child = child.getChild("value");
          if (child != null) return child;
        }
      }
      throw new SchemeImportException("Invalid scheme root: " + rootName);
    }
    //
    // Project code style 173.x and later
    //
    else if ("component".equals(rootName)) {
      if ("ProjectCodeStyleConfiguration".equals(rootElement.getAttributeValue("name"))) {
        Element child = rootElement.getChild("code_scheme");
        if (child != null) {
          return child;
        }
      }
      throw new SchemeImportException("Invalid scheme root: " + rootName);
    }
    return rootElement;
  }
protected static Element findSchemeRoot(@NotNull Element rootElement)