String (@NotNull SearchTarget target) { Project project = getProject(); SearchScope searchScope = coalesce(target.getMaximalSearchScope(), GlobalSearchScope.allScope(project)); AllSearchOptions allOptions = new AllSearchOptions(UsageOptions.createOptions(searchScope), true); List<UsageTarget> usageTargets = List.of(new SearchTarget2UsageTarget(project, target, allOptions)); Collection<? extends Usage> usages = buildUsageViewQuery(getProject(), target, allOptions).findAll(); return getUsageViewTreeTextRepresentation(usageTargets, usages); }