public static void executeInBulk(@NotNull Document document, @NotNull Runnable task) {
    executeInBulk(document, true, task);
  }
public static void executeInBulk(@NotNull Document document, @NotNull Runnable task)