// taking care of null statements - errors should have been recognized
// in parser
filterNullObjects(quantifierPartExpressions);
filterNullObjects(conditions);
filterNullObjects(actions);
ASTNode quantifierPart = null;
if (quantifierPartExpressions != null && !quantifierPartExpressions.isEmpty()) {
quantifierPart = quantifierPartExpressions.get(quantifierPartExpressions.size() - 1);
}
if (quantifierPart != null) {
bounds[1] = Math.max(bounds[1], quantifierPart.sourceEnd());
}
return new RutaRuleElement(bounds[0], bounds[1], head, quantifierPartExpressions,
conditions, actions);
}