Refatore o codigo NAME_1 deixar funcional e remover o return:
  public UserFormType(List<AddressExtraInfo> addressExtraInfos, EnrichmentInfo enrichmentInfo) {
    List<AddressType> addressTypes = getTypes(addressExtraInfos);
    boolean enrichedByStandardType = enrichmentInfo.hasEnrichedBy(STANDARD, NAME_2);

    if (!enrichedByStandardType) {
      this.type = getMostFrequentType(addressTypes);
      return;
    }

    if (enrichedByStandardType && hasEnoughTypes(addressTypes)) {
      this.type = getMostFrequentType(addressTypes);
    }
  } You should write your response with 500 or more words.
user