code: @Override
    public FilterSupportStatus isFilterSupported(
        FilterAdapterContext context, WhileMatchFilter filter) {
      // checks if wrapped filter is supported.
      List<FilterSupportStatus> unsupportedStatuses = new ArrayList<>();
      subFilterAdapter.collectUnsupportedStatuses(context, filter.getFilter(), unsupportedStatuses);
      if (!unsupportedStatuses.isEmpty()) {
        return FilterSupportStatus.newCompositeNotSupported(unsupportedStatuses);
      }
  
      // Checks if this filter is in an interleave.
      if (inInterleave(context.getScan().getFilter(), filter)) {
        return FilterSupportStatus.newNotSupported(
            "A WhileMatchFilter cannot be in a FilterList with MUST_PASS_ONE operation.");
      }
  
      return FilterSupportStatus.SUPPORTED;
    }
docs: {@inheritDoc}