@NotNull
  public static BitSet collectIgnoredRanges(@NotNull List<? extends TextRange> ignoredRanges) {
    BitSet set = new BitSet();
    for (TextRange range : ignoredRanges) {
      set.set(range.getStartOffset(), range.getEndOffset());
    }
    return set;
  }
@NotNull
  public static BitSet collectIgnoredRanges(@NotNull List<? extends TextRange> ignoredRanges)