boolean (@NotNull Ref<UsageInfo[]> refUsages) { MultiMap<PsiElement, String> conflictDescriptions = new MultiMap<>(); collectConflictsFromExtensions(refUsages, conflictDescriptions, myChangeInfo); final UsageInfo[] usagesIn = refUsages.get(); RenameUtil.addConflictDescriptions(usagesIn, conflictDescriptions); Set<UsageInfo> usagesSet = ContainerUtil.newHashSet(usagesIn); RenameUtil.removeConflictUsages(usagesSet); if (!conflictDescriptions.isEmpty()) { if (ApplicationManager.getApplication().isUnitTestMode()) { throw new ConflictsInTestsException(conflictDescriptions.values()); } ConflictsDialogBase dialog = prepareConflictsDialog(conflictDescriptions, usagesIn); if (!dialog.showAndGet()) { if (dialog.isShowConflicts()) prepareSuccessful(); return false; } } refUsages.set(usagesSet.toArray(UsageInfo.EMPTY_ARRAY)); prepareSuccessful(); return true; }