protected function buildAdditionalWhere($additionalWhere)
    {
        if (null === $additionalWhere) {
            return null;
        }

        $sql = \implode(' AND ', \array_keys((array) $additionalWhere));

        return ('' !== $sql) ? $sql . ' AND ' : null;
    }