code: function updateReadOnlyFlag(annotationToEdit, readOnlyFields) {
    if (!annotationToEdit || !annotationToEdit.selection || !readOnlyFields) {
      return;
    }
  
    annotationToEdit.readOnly = SelectionBuilder.hasField(
      annotationToEdit.selection,
      readOnlyFields
    );
  }
docs: ----------------------------------------------------------------------------