protected function hideFields(FieldList $fields)
    {
        if ($this->owner->ListInherit) {
            
            foreach ($fields as $field) {
                $field->addExtraClass('hidden');
            }
            
        }
        
        return $fields;
    }