boolean (Collection<? extends AbstractBlockWrapper> blocksToExpandIndent) { AbstractBlockWrapper last = null; for (AbstractBlockWrapper block : blocksToExpandIndent) { if (block.getWhiteSpace().containsLineFeeds()) { return true; } last = block; } if (last != null) { AbstractBlockWrapper next = getNextBlock(last); if (next != null && next.getWhiteSpace().containsLineFeeds()) { int nextNewLineBlockIndent = next.getNumberOfSymbolsBeforeBlock().getTotalSpaces(); if (nextNewLineBlockIndent >= finMinNewLineIndent(blocksToExpandIndent)) { return true; } } } return false; }