code: public List<String> createTraitType(String traitName, ImmutableSet<String> superTraits, AttributeDefinition... attributeDefinitions) throws AtlasServiceException {
          HierarchicalTypeDefinition<TraitType> piiTrait =
              TypesUtil.createTraitTypeDef(traitName, superTraits, attributeDefinitions);
  
          String traitDefinitionAsJSON = TypesSerialization.toJson(piiTrait, true);
          LOG.debug("Creating trait type {} {}" , traitName, traitDefinitionAsJSON);
          return createType(traitDefinitionAsJSON);
      }
docs: Creates trait type with specifiedName, superTraits and attributes
  @param traitName the name of the trait type
  @param superTraits the list of super traits from which this trait type inherits attributes
  @param attributeDefinitions the list of attributes of the trait type
  @return the list of types created
  @throws AtlasServiceException