like this?
```
      private static final Map<String, Type> types;

      static {
         ImmutableMap.Builder<String, Type> builder = new ImmutableMap.Builder<String, Type>();
         for (Type t : values()) {
            builder.put(t.type(), t);
         }
         types = builder.build();
      }
```