code: @Deprecated
      public Gender getListGender(List<Gender> genders) {
          if (genders.size() == 0) {
              return Gender.OTHER; // degenerate case
          }
          if (genders.size() == 1) {
              return genders.get(0); // degenerate case
          }
          switch(style) {
          case NEUTRAL:
              return Gender.OTHER;
          case MIXED_NEUTRAL:
              boolean hasFemale = false;
              boolean hasMale = false;
              for (Gender gender : genders) {
                  switch (gender) {
                  case FEMALE:
                      if (hasMale) {
                          return Gender.OTHER;
                      }
                      hasFemale = true;
                      break;
                  case MALE:
                      if (hasFemale) {
                          return Gender.OTHER;
                      }
                      hasMale = true;
                      break;
                  case OTHER:
                      return Gender.OTHER;
                  }
              }
              return hasMale ? Gender.MALE : Gender.FEMALE;
              // Note: any OTHER would have caused a return in the loop, which always happens.
          case MALE_TAINTS:
              for (Gender gender : genders) {
                  if (gender != Gender.FEMALE) {
                      return Gender.MALE;
                  }
              }
              return Gender.FEMALE;
          default:
              return Gender.OTHER;
          }
      }
docs: Get the gender of a list, based on locale usage.
  @param genders a list of genders.
  @return the gender of the list.
  @deprecated This API is ICU internal only.
  @hide draft / provisional / internal are hidden on Android