public @Nullable T get() {
    Reference<T> ref = myRef;
    T referent = ref.get();
    if (referent != null && ref instanceof WeakReference) {
      ourRegistry.add(this);
      myRef = new SoftReference<>(referent);
    }
    return referent;
  }
public @Nullable T get()