private static void performUndoableWrite(@NotNull DocumentRunnable documentRunnable) {
    ApplicationManager.getApplication().runWriteAction(
      () -> CommandProcessor.getInstance().runUndoTransparentAction(documentRunnable)
    );
  }
private static void performUndoableWrite(@NotNull DocumentRunnable documentRunnable)