String (@NotNull List<UsageTarget> usageTargets, @NotNull Collection<? extends Usage> usages) { UsageViewImpl usageView = (UsageViewImpl)UsageViewManager.getInstance(getProject()) .createUsageView(usageTargets.toArray(UsageTarget.EMPTY_ARRAY), usages.toArray(Usage.EMPTY_ARRAY), new UsageViewPresentation(), null); return getUsageViewTreeTextRepresentation(usageView); }