If `$criteria` is a `Criteria` or `null` you may pass it directly to the adapter without calling `createCriteria()`.
```php
public function __invoke($data, $criteria = null)
{
    if ($data instanceof Selectable) {
        if (is_array($criteria)) {
            $criteria = $this->createCriteria($criteria);
        }

        // Otherwise, pass $criteria directly to SelectableAdapter        
        return new Paginator(new SelectableAdapter($data, $criteria);
    }
    //...
```