code: private static Class<?>[] getGeneratorInterfaces(ResourceGenerator generator) {
  
  		Set<Class<?>> interfaces = new HashSet<>();
  		addInterfaces(generator, interfaces);
  		return (Class[]) interfaces.toArray(new Class[] {});
  	}
docs: Returns the array of interfaces implemented by the ResourceGenerator
  
  @param generator
  the generator
  @return the array of interfaces implemented by the ResourceGenerator