code: private EditType getEditType(String typeName) {
      for (EditType type : EditType.values()) {
        if (type.toString().equals(typeName)) {
          return type;
        }
      }
      return null;
    }
docs: Create a EditType from the name type used by MW
  
  @param typeName the name returned by MW
  @return the editType