void (@NotNull Project project, @NotNull Disposable parentDisposable, @NotNull Runnable r) { ThreadingAssertions.assertEventDispatchThread(); BackgroundHighlightingUtil.enableListenersInTest(project, parentDisposable); TestModeFlags.set(ourTestingIdentifierHighlighting, true); try { r.run(); } finally { waitForIdentifierHighlighting(); TestModeFlags.reset(ourTestingIdentifierHighlighting); } }