void (@NotNull Project project, @NotNull GeneratorException e) { String message = LangBundle.message("dialog.message.error.creating.project", getDisplayName()); if (ApplicationManager.getApplication().isUnitTestMode()) { LOG.error(message, e); return; } LOG.info(message, e); String title = LangBundle.message("dialog.title.create.project", getDisplayName()); Messages.showErrorDialog(project, message + ". " + e.getMessage(), title); }