int nameStart = bounds[0];
int nameEnd = bounds[1];
List<Expression> exprs = new ArrayList<Expression>();
if (exprsRaw != null) {
for (Object expressionObj : exprsRaw) {
Expression expr = (Expression) expressionObj;
if (expr != null) {
exprs.add(expr);
}
}
if (!exprs.isEmpty()) {
Expression lastExpr = (Expression) exprs.get(exprs.size() - 1);
bounds[1] = Math.max(bounds[1], lastExpr.sourceEnd());
}
}
return new RutaAction(bounds[0], bounds[1], exprs,
ExpressionConstants.USER_EXPRESSION_START + type.getType(), type.getText(), nameStart,
nameEnd);