private static int findMinNewLineIndent(@NotNull AbstractBlockWrapper block) {
    if (block instanceof LeafBlockWrapper && block.getWhiteSpace().containsLineFeeds()) {
      return block.getNumberOfSymbolsBeforeBlock().getTotalSpaces();
    }
    else if (block instanceof CompositeBlockWrapper) {
      List<AbstractBlockWrapper> children = ((CompositeBlockWrapper)block).getChildren();
      int currentMin = Integer.MAX_VALUE;
      for (AbstractBlockWrapper child : children) {
        int childIndent = findMinNewLineIndent(child);
        if (childIndent < currentMin) {
          currentMin = childIndent;
        }
      }
      return currentMin;
    }
    return Integer.MAX_VALUE;
  }
private static int findMinNewLineIndent(@NotNull AbstractBlockWrapper block)