private function registerFields(SectionInterface $section)
    {
        array_map(
            function (FieldInterface $field) use ($section) {
                add_settings_field(
                    $field->getId(),
                    $field->getTitle(),
                    $field->getRenderClosure(),
                    $this->pageSlug,
                    $section->getId(),
                    $field->getAdditionalArguments()
                );
            },
            $section->getFields()
        );
    }