public static void loadProjectExtensionsFromIpr(@NotNull JpsProject project, @Nullable Element iprRoot, @Nullable Element iwsRoot) {
    for (JpsModelSerializerExtension extension : JpsModelSerializerExtension.getExtensions()) {
      for (JpsProjectExtensionSerializer serializer : extension.getProjectExtensionSerializers()) {
        Element rootTag = JpsProjectExtensionSerializer.WORKSPACE_FILE.equals(serializer.getConfigFileName()) ? iwsRoot : iprRoot;
        Element component = JDomSerializationUtil.findComponent(rootTag, serializer.getComponentName());
        if (component != null) {
          serializer.loadExtension(project, component);
        }
        else {
          serializer.loadExtensionWithDefaultSettings(project);
        }
      }
    }
  }
public static void loadProjectExtensionsFromIpr(@NotNull JpsProject project, @Nullable Element iprRoot, @Nullable Element iwsRoot)