void () { doTest(() -> { PsiDirectory root = getPsiManager().findDirectory(myFixture.getTempDirFixture().findOrCreateDir("")); PsiClass superClass = myFixture.findClass("Superclass"); ApplicationManager.getApplication().invokeLater( () -> CreateSubclassAction.createSubclass(superClass, root, "Subclass")); UIUtil.dispatchAllInvocationEvents(); }); }