public IGoal[] init() { ExpressionTypeGoal typedGoal = (ExpressionTypeGoal) goal; ArrayCreation arrayCreation = (ArrayCreation) typedGoal.getExpression(); List<IGoal> subGoals = new LinkedList<IGoal>(); for (ArrayElement arrayElement : arrayCreation.getElements()) { subGoals.add(new ExpressionTypeGoal(typedGoal.getContext(), arrayElement.getValue())); } return subGoals.toArray(new IGoal[subGoals.size()]); }