boolean (@NotNull Ref<UsageInfo[]> refUsages) { final UsageInfo[] usagesIn = refUsages.get(); final MultiMap<PsiElement, String> conflicts = new MultiMap<>(); final ReferencedElementsCollector collector = new ReferencedElementsCollector(); myMethod.accept(collector); myNextMethod.accept(collector); final Map<PsiMember, Set<PsiMember>> containersToReferenced = InlineMethodProcessor .getInaccessible(collector.myReferencedMembers, usagesIn, myMethod); containersToReferenced.forEach((container, referencedInaccessible) -> { for (PsiMember referenced : referencedInaccessible) { if (referenced instanceof PsiField && !referenced.hasModifierProperty(PsiModifier.STATIC) && referenced.getContainingClass() == myMethod.getContainingClass()) { // Instance fields will be inlined continue; } final String referencedDescription = RefactoringUIUtil.getDescription(referenced, true); final String containerDescription = RefactoringUIUtil.getDescription(container, true); String message = RefactoringBundle.message("0.that.is.used.in.inlined.method.is.not.accessible.from.call.site.s.in.1", referencedDescription, containerDescription); conflicts.putValue(container, StringUtil.capitalize(message)); } }); return showConflicts(conflicts, usagesIn); }