void (Block current) { if (current instanceof AbstractBlock) { //building blocks as fast as possible ((AbstractBlock)current).setBuildIndentsOnly(true); } List<Block> blocks = current.getSubBlocks(); ListIterator<Block> iterator = blocks.listIterator(blocks.size()); while (iterator.hasPrevious()) { myStack.push(iterator.previous()); } }