src/Controller/UpdateController.php
private function getSectionedSettings(string $section, Collection $collection)
    {
        return $collection->filter(
            function (SettingInterface $setting) use ($section) {
                return $section === $setting->getSection();
            }
        )->toArray();
    }
private function getSectionedSettings(string $section, Collection $collection)
    {
        return $collection->filter(
            function (SettingInterface $setting) use ($section) {
                return $section === $setting->getSection();
            }
        )->toArray();
    }
@param string $section
@param Collection $collection

@return SettingInterface[]