boolean (@Nullable Project project, @NlsContexts.DialogMessage String message, @NotNull Collection<? extends DocumentReference> problemFiles) { if (ApplicationManager.getApplication().isUnitTestMode()) { throw new RuntimeException(message + "\n" + StringUtil.join(problemFiles, "\n")); } new CannotUndoReportDialog(project, message, problemFiles).show(); return true; }