@ApiStatus.Internal
  public static void previewSession(@NotNull Editor editor, @NotNull Runnable runnable) {
    PREVIEW_EDITOR.set(editor);
    try {
      runnable.run();
    }
    finally {
      PREVIEW_EDITOR.remove();
    }
  }
@ApiStatus.Internal
  public static void previewSession(@NotNull Editor editor, @NotNull Runnable runnable)