private function ensureFieldConfigurationIsValid(array $entityConfig, string $entityName, string $section)
    {
        if (!isset($entityConfig[$section]['fields']) || !\count($entityConfig[$section]['fields'])) {
            return;
        }

        throw new ConflictingConfigurationException(\sprintf(
            '"%s" and "%s" are mutually conflicting. Pick just one of them in %s YAML configuration',
            'exclude_fields',
            'fields',
            \sprintf('easy_admin > entities > %s > %s', $entityName, $section)
        ));
    }