Pass in StatementContext here instead, and the check would be context.getScanRanges().useSkipScanFilter()