svoid nlLogic_collectExecutedRulesWithOutputOrFacts(L in, L out) { for (ExecutedRule r : in) if (nempty(r.output) || nempty(r.facts)) out.add(r); }