public static void assertSlowOperationsAreAllowed() {
    String error = !EDT.isCurrentThreadEdt() ||
                   isAlwaysAllowed() ||
                   isSlowOperationAllowed() ? null : ERROR_EDT;
    if (error == null || isAlreadyReported()) return;
    if (isInSection(FORCE_THROW) && !Cancellation.isInNonCancelableSection()) {
      throw new SlowOperationCanceledException();
    }
    LOG.error(error);
  }
public static void assertSlowOperationsAreAllowed()