function detectType(el) {
    const { repropagationRole } = getProtectedMembers(el);
    if (repropagationRole === 'child') {
      if (featureDetectChoiceField(el)) {
        return featureDetectOptionChoiceField(el) ? 'OptionChoiceField' : 'ChoiceField';
      }
      return 'RegularField';
    }
    return repropagationRole === 'choice-group' ? 'ChoiceGroupField' : 'FormOrFieldset';
  }
@param {FormControl} el
@returns {'RegularField'|'ChoiceField'|'OptionChoiceField'|'ChoiceGroupField'|'FormOrFieldset'}