static L> ai_checkTripleRefs(Symbol a, Symbol b, Symbol c, L> l) { if (empty(l)) ret sharedEmptyList(); new L> out; for (TripleRef ref : l) if (ref != null) if (canSimpleMatchTriple_dollarVars(a, b, c, ref.triple)) out.add(ref); ret out; }