private static boolean isFirstInLine(@NotNull List<? extends InlineChunk> words1, int index) {
    if (index == 0) return true;
    return words1.get(index - 1) instanceof NewlineChunk;
  }
private static boolean isFirstInLine(@NotNull List<? extends InlineChunk> words1, int index)