You can do this instead and you won't need the FilterListWithEquals class:
        scan.setFilter(filter);
        if (context.hasCnf()) {
            // skip scan filter
            SkipScanFilter skip = new SkipScanFilter();
            context.getCnf(skip);
            ScanUtil.andFilter(scan, skip); // This will add the skip filter as the first filter
        }