List<GenerationNode> (int numberInIteration, int totalIterations, String surroundedText, CustomTemplateCallback callback, boolean insertSurroundedTextAtTheEnd, GenerationNode parent) { if (surroundedText == null) { return myOperand.expand(numberInIteration, totalIterations, null, callback, insertSurroundedTextAtTheEnd, parent); } String[] lines = LineTokenizer.tokenize(StringUtil.trim(surroundedText), false); List<GenerationNode> result = new ArrayList<>(); for (int i = 0; i < lines.length; i++) { String line = lines[i].trim(); result.addAll(myOperand.expand(i, lines.length, line, callback, insertSurroundedTextAtTheEnd, parent)); } return result; }