void (List<Block> result, ASTNode child) { Block templateLanguageBlock = createTemplateLanguageBlock(child); if (templateLanguageBlock instanceof BlockWithParent) { ((BlockWithParent)templateLanguageBlock).setParent(this); } result.add(templateLanguageBlock); }