boolean (Project project, List<? extends Pair<PsiElement, PsiElement>> conflicts, String obscured, @Nullable String name) { if (conflicts.size() > 0) { Usage[] usages = new Usage[conflicts.size()]; int i = 0; for (Pair<PsiElement, PsiElement> pair : conflicts) { usages[i] = new NameUsage(pair.getFirst(), pair.getSecond(), name != null ? name : obscured, name != null); i += 1; } UsageViewPresentation prsnt = new UsageViewPresentation(); prsnt.setTabText(PyBundle.message("CONFLICT.name.obscured.by.local.definitions", obscured)); prsnt.setCodeUsagesString(PyBundle.message("CONFLICT.name.obscured.cannot.convert", obscured)); prsnt.setUsagesString(PyBundle.message("CONFLICT.occurrence.pl")); UsageViewManager.getInstance(project).showUsages(UsageTarget.EMPTY_ARRAY, usages, prsnt); return true; } return false; }