docs: public void setRetainViewMode(@NonNull RetainViewMode retainViewMode) {
          this.retainViewMode = retainViewMode != null ? retainViewMode : RetainViewMode.RELEASE_DETACH;
          if (this.retainViewMode == RetainViewMode.RELEASE_DETACH && !attached) {
              removeViewReference();
          }
      }