List<Block> () { final ArrayList<Block> result = new ArrayList<>(); Alignment childAlignment = createChildAlignment(); Wrap childWrap = createChildWrap(); buildChildren(result, childAlignment, childWrap); for (Block block : result) { if (block instanceof AbstractJavaBlock) { ((AbstractJavaBlock)block).setParentBlock(this); } } return result; }