PyBlock (@NotNull ASTNode child) { assert child.getElementType() != PyElementTypes.BINARY_EXPRESSION; PyBlock parentBlock = this; PyBlock alignmentOwner = null; while (parentBlock != null && parentBlock.myNode.getElementType() == PyElementTypes.BINARY_EXPRESSION) { alignmentOwner = parentBlock; parentBlock = parentBlock.myParent; } return alignmentOwner; }