private boolean isInsideExtendedFormattingRanges(Block currentBlock) {
    TextRange blockRange = currentBlock.getTextRange();
    return myExtendedRanges.stream().anyMatch(range -> range.intersects(blockRange));
  }
private boolean isInsideExtendedFormattingRanges(Block currentBlock)