code: public final void setVisibilityPolicy(@NonNull VisibilityPolicy visibilityPolicy) {
          checkNotNull(visibilityPolicy, "visibilityPolicy");
          if (visibilityPolicy != mVisibilityPolicy) {
              mVisibilityPolicy = visibilityPolicy;
              updateViews();
          }
      }
docs: Set the policy used to determine the visibility of each child component view.