code: private ModeOfInheritance getInheritanceModel(List<ReferenceAssertionType.AttributeSet> attributeSetList,
                                                    Map<String, String> sourceInheritableTrait)
              throws JsonProcessingException {
          Set<String> inheritanceModelSet = new HashSet<>();
  //        for (TraitType trait : publicSet.getReferenceClinVarAssertion().getTraitSet().getTrait()) {
  //        if (trait.getAttributeSet() != null) {
          if (attributeSetList != null) {
              for (ReferenceAssertionType.AttributeSet attributeSet : attributeSetList) {
                  if (attributeSet.getAttribute().getType() != null
                          && attributeSet.getAttribute().getType().equalsIgnoreCase("modeofinheritance")) {
                      inheritanceModelSet.add(attributeSet.getAttribute().getValue().toLowerCase());
                  }
              }
          }
  //        }
  
          if (inheritanceModelSet.size() == 0) {
              return null;
          } else if (inheritanceModelSet.size() > 1) {
              sourceInheritableTrait.put(MODE_OF_INHERITANCE,
                      jsonObjectWriter.writeValueAsString(new ArrayList<>(inheritanceModelSet)));
              numberMultipleInheritanceModels++;
              return solveModeOfInheritanceConflict(inheritanceModelSet);
          } else {
              sourceInheritableTrait.put(MODE_OF_INHERITANCE, inheritanceModelSet.iterator().next());
              return getModeOfInheritance(inheritanceModelSet.iterator().next());
          }
      }
docs: private ModeOfInheritance getInheritanceModel(TraitType trait, Map<String, String> sourceInheritableTrait)