@Deprecated
  public static boolean runInReadActionWithWriteActionPriority(@NotNull Runnable action, @Nullable ProgressIndicator progressIndicator) {
    AtomicBoolean readActionAcquired = new AtomicBoolean();
    boolean executed = runWithWriteActionPriority(() -> readActionAcquired.set(ApplicationManagerEx.getApplicationEx().tryRunReadAction(action)),
                                           progressIndicator == null ? new ProgressIndicatorBase(false, false) : progressIndicator);
    return readActionAcquired.get() && executed;
  }
@Deprecated
  public static boolean runInReadActionWithWriteActionPriority(@NotNull Runnable action, @Nullable ProgressIndicator progressIndicator)