boolean (@NotNull Ref<UsageInfo[]> refUsages) { final MultiMap<PsiElement, String> conflicts = new MultiMap<>(); final JavaPsiFacade psiFacade = JavaPsiFacade.getInstance(myProject); final PsiClass builderClass = psiFacade.findClass(StringUtil.getQualifiedName(myPackageName, myClassName), GlobalSearchScope.projectScope(myProject)); if (builderClass == null) { if (!myCreateNewBuilderClass) { conflicts.putValue(null, JavaRefactoringBundle.message("replace.constructor.builder.error.selected.class.was.not.found")); } } else if (myCreateNewBuilderClass){ conflicts.putValue(builderClass, JavaRefactoringBundle.message("replace.constructor.builder.error.class.with.chosen.name.already.exist")); } if (myMoveDestination != null && myCreateNewBuilderClass) { myMoveDestination.analyzeModuleConflicts(Collections.emptyList(), conflicts, refUsages.get()); } final PsiMethod commonConstructor = getMostCommonConstructor(); if (commonConstructor == null) { conflicts.putValue(null, JavaRefactoringBundle.message("replace.constructor.builder.error.no.constructor.chain")); } return showConflicts(conflicts, refUsages.get()); }