docs: @NonNull
      public Visibility setMode(@VisibilityMode int mode) {
          if ((mode & ~(MODE_IN | MODE_OUT)) != 0) {
              throw new IllegalArgumentException("Only MODE_IN and MODE_OUT flags are allowed");
          }
          mMode = mode;
          return this;
      }