boolean (@NotNull final Ref<UsageInfo[]> refUsages) { UsageInfo[] usagesIn = refUsages.get(); if (ApplicationManager.getApplication().isUnitTestMode() && !BaseRefactoringProcessor.ConflictsInTestsException.isTestIgnore()) { MultiMap<PsiElement, @Nls String> conflictDescriptions = getConflictDescriptions(usagesIn); if (!conflictDescriptions.isEmpty()) { throw new ConflictsInTestsException(conflictDescriptions.values()); } } if (myPrepareSuccessfulSwingThreadCallback != null) { MultiMap<PsiElement, String> conflicts = getConflictDescriptions(usagesIn); if (conflicts.size() > 0) { ConflictsDialogBase conflictsDialog = prepareConflictsDialog(conflicts, refUsages.get()); if (!conflictsDialog.showAndGet()) { if (conflictsDialog.isShowConflicts()) prepareSuccessful(); return false; } } if(!mySettings.isChangeSignature()) { refUsages.set(filterInternalUsages(usagesIn)); } } final Set<UsageInfo> toMakeStatic = new LinkedHashSet<>(); refUsages.set(filterOverriding(usagesIn, toMakeStatic)); if (!findAdditionalMembers(toMakeStatic)) return false; prepareSuccessful(); return true; }