code: public static Set<ResourceType> of(final ResourceType first, final ResourceType... rest) {
          final Set<ResourceType> set = new HashSet<>();
          set.add(first);
          set.addAll(Arrays.asList(rest));
          return set;
      }
docs: Returns a set containing the given resource types
  
  @param first The first resource type to add
  @param rest  The remaining resource types to add
  @return A set containing the given resource types