static boolean canHandle(@NotNull IdeaLoggingEvent event) {
    if (ourLoggerBroken) return false;

    try {
      var app = ApplicationManager.getApplication();
      if (app == null || app.isExitInProgress() || app.isDisposed()) return false;

      var t = event.getThrowable();
      if (getOOMErrorKind(t) != null) return true;

      var notificationEnabled = !DISABLED_VALUE.equals(System.getProperty(FATAL_ERROR_NOTIFICATION_PROPERTY));

      var pluginId = PluginUtil.getInstance().findPluginId(t);
      var submitter = IdeErrorsDialog.getSubmitter(t, pluginId);
      var showPluginError = !(submitter instanceof ITNReporter itnReporter) || itnReporter.showErrorInRelease(event);

      scheduleUpdateCheck(pluginId);

      return app.isInternal() || notificationEnabled || showPluginError;
    }
    catch (LinkageError e) {
      if (e.getMessage().contains("Could not initialize class com.intellij.diagnostic.IdeErrorsDialog")) {
        ourLoggerBroken = true;
      }
      throw e;
    }
  }
static boolean canHandle(@NotNull IdeaLoggingEvent event)