static void invokeLater(@NotNull ModalityState modalityState,
                          @NotNull Condition<?> expired,
                          @NotNull Runnable runnable) {
    SideEffectGuard.checkSideEffectAllowed(SideEffectGuard.EffectType.INVOKE_LATER);
    if (expired.value(null)) {
      return;
    }
    ourEdtQueue.push(modalityState, expired, runnable);
  }
static void invokeLater(@NotNull ModalityState modalityState,
                          @NotNull Condition<?> expired,
                          @NotNull Runnable runnable)