code: public static <T> Map<? extends String, T> toMap(List<Tag<T>> tags) {
      ImmutableMap.Builder<String, T> tagsMapBuilder = ImmutableMap.builder();
      for (Tag<T> tag : tags) {
        tagsMapBuilder.put(tag.getKey(), tag.getValue());
      }
      return tagsMapBuilder.build();
    }
docs: Converts a {@link List} of {@link Tag}s to a {@link Map} of key, value pairs.
  
  @param tags a {@link List} of {@link Tag}s that should be converted to key, value pairs
  
  @return a {@link Map} of key, value pairs