private static Set<TypeAdapter<?>> getRuntimeGeneratedTypeAdapters(Gson gson) {
      Set<TypeAdapter<?>> adapters = gson.runtimeGeneratedTypeAdapters.get();
      if (adapters == null) adapters = new HashSet<TypeAdapter<?>>();
      gson.runtimeGeneratedTypeAdapters.set(adapters);
      return adapters;
    }