@Override
  public void selectLibrary(@NotNull Library library) {
    final LibraryTable table = library.getTable();
    if (table != null) {
      myParent.getProjectStructureConfigurable().selectProjectOrGlobalLibrary(library, true);
    }
    else {
      final Module module = ((LibraryEx)library).getModule();
      if (module != null) {
        final ModuleRootModel rootModel = myParent.getModulesProvider().getRootModel(module);
        final String libraryName = library.getName();
        for (OrderEntry entry : rootModel.getOrderEntries()) {
          if (entry instanceof LibraryOrderEntry libraryEntry && OrderEntryUtil.isModuleLibraryOrderEntry(entry)) {
            if (libraryName != null && libraryName.equals(libraryEntry.getLibraryName())
               || libraryName == null && library.equals(libraryEntry.getLibrary())) {
              myParent.getProjectStructureConfigurable().selectOrderEntry(module, libraryEntry);
              return;
            }
          }
        }
      }
    }
  }
@Override
  public void selectLibrary(@NotNull Library library)