private void applyPredicatesForRegisteredItems ( final List < PredicateHandler > predicates ) { ImmutableList . builder ( ) . addAll ( getEnabledModules ( ) ) . addAll ( getEnabledBundles ( ) ) . addAll ( getEnabledExtensions ( ) ) . addAll ( getEnabledInstallers ( ) ) . build ( ) . stream ( ) . < ItemInfo > map ( this :: getInfo ) . forEach ( item -> applyDisablePredicates ( predicates , item ) ) ; }
Disable predicate could be registered after some items registration and to make sure that predicate affects all these items - apply to all currenlty registered items .