code: private void buildTimeZoneAliases(TypeSpec.Builder type, Map<String, String> map) {
      MethodSpec.Builder method = MethodSpec.methodBuilder("getTimeZoneAlias")
          .addModifiers(PUBLIC, STATIC)
          .addParameter(String.class, "zoneId")
          .returns(String.class);
  
      method.beginControlFlow("switch (zoneId)");
      for (Map.Entry<String, String> entry : map.entrySet()) {
        method.addStatement("case $S: return $S", entry.getKey(), entry.getValue());
      }
      method.addStatement("default: return null");
      method.endControlFlow();
      type.addMethod(method.build());
    }
docs: Creates a switch table to resolve a retired time zone to a valid one.