@ApiStatus.Internal
  public static boolean isWriteActionRunningOrPending(@NotNull ApplicationEx application) {
    return application.isWriteActionPending() || application.isWriteActionInProgress();
  }
@ApiStatus.Internal
  public static boolean isWriteActionRunningOrPending(@NotNull ApplicationEx application)