@Override
  public JpsLibrary getLibrary() {
    Ref<JpsLibrary> libRef = myCachedLibrary;
    if (libRef == null) {
      libRef = new Ref<>(getLibraryReference().resolve());
      myCachedLibrary = libRef;
    }
    return libRef.get();
  }
@Override
  public JpsLibrary getLibrary()