boolean (@NotNull ActionContext context, @NotNull ModShowConflicts conflicts, @Nullable Editor editor) { MultiMap<PsiElement, String> conflictData = new MultiMap<>(); conflicts.conflicts().forEach((e, c) -> conflictData.put(e, c.messages())); if (!conflictData.isEmpty()) { var conflictsDialog = new ConflictsDialog(context.project(), conflictData, () -> doExecuteInteractively(context, conflicts.nextStep(), editor)); if (!conflictsDialog.showAndGet()) { return false; } } return doExecuteInteractively(context, conflicts.nextStep(), editor); }