UsageView (UsageTarget @NotNull [] searchedFor, Usage @NotNull [] foundUsages, @NotNull UsageViewPresentation presentation, @Nullable Factory<? extends UsageSearcher> factory) { UsageViewEx usageView = createUsageView(searchedFor, foundUsages, presentation, factory); showUsageView(usageView, presentation); if (usageView instanceof UsageViewImpl) { showToolWindow(true); UIUtil.invokeLaterIfNeeded(() -> { if (!((UsageViewImpl)usageView).isDisposed()) { ((UsageViewImpl)usageView).expandRoot(); } }); } return usageView; }