code: public static <T> DependencyResolver<T> newInstance(Collection<T> elements, DependencyProvider<T> dependencyProvider) {
          return new DependencyResolver<T>(elements, dependencyProvider);
      }
docs: Creates an instance of the resolver.
  
  @param elements
  The elements to resolve.
  @param dependencyProvider
  The dependency provider.
  @param <T>
  The element type.
  @return The resolver.