void (UsageInfo @NotNull [] usages) { final Set<PsiElement> victims = new HashSet<>(); for (UsageInfo usage : usages) { victims.add(usage.getElement()); } myResult.apply (victims); WindowManager.getInstance().getStatusBar(myProject).setInfo(myResult.getReport()); }