private static InjectionProviderInstancesSupplier mergeSuppliers(final InjectionProviderInstancesSupplier... suppliers) {
        final Set<InjectionProvider<?>> result = new LinkedHashSet<InjectionProvider<?>>();

        if (suppliers != null && suppliers.length > 0) {

            for (final InjectionProviderInstancesSupplier supplier : suppliers) {
                result.addAll(supplier.get());
            }

        }

        return new InjectionProviderInstancesSupplier() {

            @Override
            public Set<InjectionProvider<?>> get() {
                return result;
            }
        };
    }
private static InjectionProviderInstancesSupplier mergeSuppliers ( final InjectionProviderInstancesSupplier ... suppliers ) { final Set < InjectionProvider < ? > > result = new LinkedHashSet < InjectionProvider < ? > > ( ) ; if ( suppliers != null && suppliers . length > 0 ) { for ( final InjectionProviderInstancesSupplier supplier : suppliers ) { result . addAll ( supplier . get ( ) ) ; } } return new InjectionProviderInstancesSupplier ( ) { @ Override public Set < InjectionProvider < ? > > get ( ) { return result ; } } ; }
Creates new supplier containing all providers in a new set.

@param suppliers
vararg array of existing suppliers
@return new instance containing all providers