private static boolean intersects(@NotNull List<? extends TextRange> ranges, int start, int end) {
    for (TextRange range : ranges) {
      if (range.intersectsStrict(start, end)) {
        return true;
      }
    }
    return false;
  }
private static boolean intersects(@NotNull List<? extends TextRange> ranges, int start, int end)