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