docs: function getFieldsModel(text, fieldState) {
  	const model = typeof text === 'object' ? text : parseFields(text);
      let largestIndex = -1;
  
      model.fields.forEach(field => {
  		field.index += fieldState.index;
  		if (field.index > largestIndex) {
  			largestIndex = field.index;
  		}
  	});
  
  	if (largestIndex !== -1) {
  		fieldState.index = largestIndex + 1;
  	}
  
      return model;
  }