static L> ai_filterTripleRefs(int position, Symbol a, Symbol b, Symbol c, L> l) { new L> out; for (TripleRef r : l) if (r != null && canSimpleMatchTriple_dollarVars(a, b, c, r.triple)) out.add(modifyTripleRef(r, position)); ret out; }