code: @Override
      public Stream<AlertPolicyMetadata> findLazy(AlertPolicyFilter filter) {
          checkNotNull(filter, "Criteria must be not null");
  
          return
              filter.applyFindLazy(criteria -> {
                  if (isAlwaysTruePredicate(criteria.getPredicate()) &&
                      criteria.getIds().size() > 0) {
                      return
                          criteria.getIds().stream()
                              .map(nullable(client::getAlertPolicy))
                              .filter(notNull());
                  } else {
                      return
                          client.getAlertPolicies()
                              .stream()
                              .filter(criteria.getPredicate())
                              .filter((criteria.getIds().size() > 0) ?
                                      combine(AlertPolicyMetadata::getId, in(criteria.getIds())) : alwaysTrue()
                              );
                  }
              });
      }
docs: {@inheritDoc}