public static void showError(@NotNull @Nls(capitalization = Title) String title, @NotNull Throwable t) {
    var message = new StringWriter();

    var awtError = findCause(t, AWTError.class);
    if (awtError != null) {
      message.append(BootstrapBundle.message("bootstrap.error.prefix.graphics"));
      hasGraphics = false;
      t = awtError;
    }
    else {
      message.append(BootstrapBundle.message("bootstrap.error.prefix.other"));
    }

    message.append("\n\n");
    t.printStackTrace(new PrintWriter(message));

    message.append("\n-----\n").append(BootstrapBundle.message("bootstrap.error.appendix.jre", jreDetails()));

    showError(title, message.toString()); //NON-NLS
  }
public static void showError(@NotNull @Nls(capitalization = Title) String title, @NotNull Throwable t)