boolean (@NotNull Ref<UsageInfo[]> refUsages) { final MultiMap<PsiElement, String> conflicts = new MultiMap<>(); final UsageInfo[] usages = refUsages.get(); String newVisibility = myOptions.getExplicitMemberVisibility(); // still need to check for access object final Map<PsiMember, PsiModifierList> modifierListCopies = new HashMap<>(); for (PsiMember member : myMembersToMove) { PsiModifierList modifierListCopy = member.getModifierList(); if (modifierListCopy != null) { modifierListCopy = (PsiModifierList)modifierListCopy.copy(); } if (modifierListCopy != null && newVisibility != null) { try { VisibilityUtil.setVisibility(modifierListCopy, newVisibility); } catch (IncorrectOperationException e) { LOG.error(e); } } modifierListCopies.put(member, modifierListCopy); } analyzeConflictsOnUsages(usages, myMembersToMove, myTargetClass, modifierListCopies, myOptions, conflicts); analyzeConflictsOnMembers(myMembersToMove, newVisibility, myTargetClass, modifierListCopies, conflicts); final VirtualFile vFile = PsiUtilCore.getVirtualFile(myTargetClass); if (vFile != null) { RefactoringConflictsUtil.getInstance().analyzeModuleConflicts(myProject, myMembersToMove, usages, vFile, conflicts); } return showConflicts(conflicts, usages); }