code: public AntiAffinityPolicyFilter where(Predicate<AntiAffinityPolicyMetadata> filter) {
          checkNotNull(filter, "Filter predicate must be not a null");
  
          this.predicate = this.predicate.and(filter);
  
          return this;
      }
docs: Method allow to filter policies using predicate.
  
  @param filter is not null policy filtering predicate
  @return {@link AntiAffinityPolicyFilter}