ArrayNode buildArray(List statements) { final result = ArrayNode(); addTo<IsStatement>(result.statements, statements); addTo<Token>(result.periods, statements); return result; }