XtendASTFlattener converted to xtend