public boolean isWhitespaceReadOnly(@NotNull TextRange range) {
    if (range.getStartOffset() >= formattingRange.getEndOffset()) return true;
    
    if (processHeadingWhitespace && range.getEndOffset() == formattingRange.getStartOffset()) {
      return false;
    }
    
    return range.getEndOffset() <= formattingRange.getStartOffset();
  }
public boolean isWhitespaceReadOnly(@NotNull TextRange range)