@Nullable
  private Library getLibrary() {
    ProjectStructureElement element = myConfigurable.getSelectedElement();
    return element instanceof LibraryProjectStructureElement ? ((LibraryProjectStructureElement)element).getLibrary() : null;
  }
@Nullable
  private Library getLibrary()