protected function getBatchesForAttributes(array $attributes)
{
$batches = [];
foreach ($this->batches as $index => $batch) {
/** @var Batch $batch */
if (in_array(MBString::strtolower($batch->getAttribute()), MBString::array_change_value_case($attributes))) {
$batches[$index] = $batch;
}
}
return $batches;
}