public static void applyModification(@NotNull Document document1,
                                       int line1,
                                       int line2,
                                       @NotNull Document document2,
                                       int oLine1,
                                       int oLine2,
                                       boolean isLocalChangeRevert) {
    DiffUtil.applyModification(document1, line1, line2, document2, oLine1, oLine2);

    if (isLocalChangeRevert) {
      DiffUtil.clearLineModificationFlags(document1, line1, line1 + (oLine2 - oLine1));
    }
  }
public static void applyModification(@NotNull Document document1,
                                       int line1,
                                       int line2,
                                       @NotNull Document document2,
                                       int oLine1,
                                       int oLine2,
                                       boolean isLocalChangeRevert)