void (PsiJavaCodeReferenceElement reference, PsiElement resolved, HashMap<PsiElement, HashSet<PsiElement>> reported, MultiMap<PsiElement, String> conflicts) { final PsiElement container = ConflictsUtil.getContainer(reference); HashSet<PsiElement> containerSet = reported.get(container); if (containerSet == null) { containerSet = new HashSet<>(); reported.put(container, containerSet); } if (!containerSet.contains(resolved)) { containerSet.add(resolved); String message = JavaRefactoringBundle.message("0.will.become.inaccessible.from.1", RefactoringUIUtil.getDescription(resolved, true), RefactoringUIUtil.getDescription(container, true)); conflicts.putValue(reference, message); } }