private @Nullable Element findModuleLibraryElement(String libraryName) {
    for (Element element : getOrderEntries()) {
      if (JpsModuleRootModelSerializer.MODULE_LIBRARY_TYPE.equals(element.getAttributeValue(JpsModuleRootModelSerializer.TYPE_ATTRIBUTE))) {
        final Element library = element.getChild(JpsLibraryTableSerializer.LIBRARY_TAG);
        if (library != null && libraryName.equals(library.getAttributeValue(JpsLibraryTableSerializer.NAME_ATTRIBUTE))) {
          return library;
        }
      }
    }
    return null;
  }
private @Nullable Element findModuleLibraryElement(String libraryName)