@NotNull
public ChildAttributes getChildAttributes(final int newChildIndex) {
List<Block> subBlocks = getSubBlocks();
if (newChildIndex > subBlocks.size() - 1) {
return new ChildAttributes(Indent.getNoneIndent(), Alignment.createAlignment());
} else {
Block child = getSubBlocks().get(newChildIndex);
return new ChildAttributes(child.getIndent(), child.getAlignment());
}
}