code: public static InjectionProvider<?>[] providersToArray(final Collection<InjectionProvider<?>> providers) {
          return providers == null ? new InjectionProvider<?>[0] : providers
                  .toArray(new InjectionProvider<?>[providers.size()]);
      }
docs: Create array of InjectionProviders for given collection.
  
  @param providers
  providers to be contained
  @return array of given providers