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