UsageViewImpl (Usage @NotNull ... usages) { UsageViewImpl usageView = (UsageViewImpl)UsageViewManager.getInstance(getProject()) .createUsageView(UsageTarget.EMPTY_ARRAY, usages, new UsageViewPresentation(), null); Disposer.register(myFixture.getTestRootDisposable(), usageView); waitForUsages(usageView); UIUtil.dispatchAllInvocationEvents(); return usageView; }