ChildAttributes (final int newChildIndex) { if (isOuterLanguageBlock()) return ChildAttributes.DELEGATE_TO_NEXT_CHILD; final List<Block> subBlocks = getSubBlocks(); final int prevBlockIndex = newChildIndex - 1; if (prevBlockIndex >= 0 && prevBlockIndex < subBlocks.size()) { final Block prevBlock = subBlocks.get(newChildIndex - 1); if (isAttributeBlock(prevBlock)) { return new ChildAttributes(myChildIndent, prevBlock.getAlignment()); } } return new ChildAttributes(myChildIndent, null); }