List<ElementGraph> results = new ArrayList<>();
for( ElementGraph child : children )
{
Transformed transformed = transformer.transform( plannerContext, child );
writeTrace( ruleResult, phase, (Rule) transformer, parent, child, transformed );
ElementGraph endGraph = transformed.getEndGraph();
if( endGraph != null )
results.add( endGraph );
else
results.add( child );