public static LNodeList MaybeRemoveNoOpFromRunSeq(LNodeList runSeq) { // Delete final no-op in case of e.g. Foo()::id; => #runSequence(var id = Foo(); id) if (runSeq.Count > 1 && runSeq.Last.IsId) { return(runSeq.WithoutLast(1)); } return(runSeq); }