String () { ClassFilter.ClassFilterWithScope filter; try { filter = getFilter(); } catch (MessageInfoException e) { MessagesEx.MessageInfo message = e.getMessageInfo(); message.showNow(); return null; } TreeClassChooser chooser = TreeClassChooserFactory.getInstance(getProject()).createWithInnerClassesScopeChooser( TestngBundle.message("test.class.browser.dialog.title.choose.test.class"), filter.getScope(), filter, null); init(chooser); chooser.showDialog(); PsiClass psiclass = chooser.getSelected(); if (psiclass == null) { return null; } else { onClassChoosen(psiclass); return psiclass.getQualifiedName(); } }