public static void writeInRunUndoTransparentAction(final @NotNull Runnable runnable) {
    CommandProcessor.getInstance().runUndoTransparentAction(() -> ApplicationManager.getApplication().runWriteAction(runnable));
  }
public static void writeInRunUndoTransparentAction(final @NotNull Runnable runnable)