ArrayList<Block> subBlocks = new ArrayList<Block>();
ASTNode[] children = curNode.getChildren(null);
for (ASTNode childNode : children) {
if (canBeCorrectBlock(childNode)) {
//todo [low] it is not clear with aligment
subBlocks.add(new PbBlock(childNode, curNode.getPsi() instanceof protobuf.lang.psi.api.block.PbBlock ? null : alignment, PbIndentProcessor.getChildIndent(block, childNode), wrap, settings));
}
}
return subBlocks;
}