void (String unscramble) { RunContentDescriptor descriptor = UnscrambleDialog.showUnscrambledText(null, "foo", null, getProject(), unscramble); assertNotNull(descriptor); Disposer.register(myFixture.getTestRootDisposable(), descriptor); myContent = descriptor; }