boolean (@NotNull Project project, @NlsContexts.DialogTitle @NotNull String title, @NotNull ConfigurationErrorType type, @Nls @NotNull String invalidElements, @NotNull List<? extends ConfigurationErrorDescription> errors) { if (errors.isEmpty()) { return true; } if (errors.size() == 1) { ConfigurationErrorDescription error = errors.get(0); String message = error.getDescription() + "\n" + error.getIgnoreConfirmationMessage(); int answer = Messages.showYesNoDialog(project, message, title, Messages.getErrorIcon()); if (answer == Messages.YES) { error.ignoreInvalidElement(); return true; } return false; } RemoveInvalidElementsDialog dialog = new RemoveInvalidElementsDialog(title, type, invalidElements, project, errors); if (dialog.showAndGet()) { for (ConfigurationErrorDescription errorDescription : dialog.getSelectedItems()) { errorDescription.ignoreInvalidElement(); } return true; } return false; }