PsiElement () { if (ApplicationManager.getApplication().isUnitTestMode()) { doCreate(myTemplate.getName() + "." + myTemplate.getExtension()); Disposer.dispose(getDisposable()); return myCreatedElement; } if (myAttrPanel != null) { if (myAttrPanel.hasSomethingToAsk()) { show(); return myCreatedElement; } doCreate(null); } close(DialogWrapper.OK_EXIT_CODE); return myCreatedElement; }