public Set<Class<?>> getActiveScopes(final boolean countDisables) {
        final Set<Class<?>> res = Sets.newHashSet();
        context.getItems(it -> {
            res.addAll(it.getRegisteredBy());
            if (countDisables && it instanceof DisableSupport) {
                res.addAll(((DisableSupport) it).getDisabledBy());
            }
            return true;
        });
        return res;
    }
public Set < Class < ? > > getActiveScopes ( final boolean countDisables ) { final Set < Class < ? > > res = Sets . newHashSet ( ) ; context . getItems ( it -> { res . addAll ( it . getRegisteredBy ( ) ) ; if ( countDisables && it instanceof DisableSupport ) { res . addAll ( ( ( DisableSupport ) it ) . getDisabledBy ( ) ) ; } return true ; } ) ; return res ; }
@param countDisables include scopes with disables only
@return all active scopes or empty collection
@see ItemInfo#getRegisteredBy() for more info about scopes