private static int findOriginalLine(@NotNull String afterContent,
                                      @NotNull LineOffsets afterLineOffsets,
                                      @NotNull String originalLine,
                                      @NotNull List<? extends LineFragment> fragments) {
    for (LineFragment fragment : fragments) {
      for (int i = fragment.getStartLine2(); i < fragment.getEndLine2(); i++) {
        String line = getLine(afterContent, afterLineOffsets, i);
        if (StringUtil.equalsIgnoreWhitespaces(line, originalLine)) return i;
      }
    }

    return -1; // line not found
  }
private static int findOriginalLine(@NotNull String afterContent,
                                      @NotNull LineOffsets afterLineOffsets,
                                      @NotNull String originalLine,
                                      @NotNull List<? extends LineFragment> fragments)