IndentInfo (FormatProcessor.ChildAttributesInfo info, AbstractBlockWrapper child) { AbstractBlockWrapper parent = info.parent(); ChildAttributes childAttributes = info.attributes(); int index = info.index(); AlignWhiteSpace alignWhiteSpace = getAlignOffsetBefore(childAttributes.getAlignment()); if (alignWhiteSpace == null) { return parent.calculateChildOffset(myBlockIndentOptions.getIndentOptions(child), childAttributes, index).createIndentInfo(); } else { return new IndentInfo(0, alignWhiteSpace.indentSpaces, alignWhiteSpace.alignSpaces); } }