void (Collection<? extends PsiElement> targets, Collection<Usage> usages, UsageViewPresentation presentation) { UsageTarget[] targetsArray = targets.isEmpty() ? UsageTarget.EMPTY_ARRAY : PsiElement2UsageTargetAdapter.convert(PsiUtilCore.toPsiElementArray(targets)); Usage[] usagesArray = usages.toArray(Usage.EMPTY_ARRAY); UsageViewManager.getInstance(myProject).showUsages(targetsArray, usagesArray, presentation); }