String () { GlobalSearchScope searchScope = getSearchScope(config.getModules()); if (searchScope == null) { searchScope = GlobalSearchScope.allScope(project); } final TestListenerFilter filter = new TestListenerFilter(searchScope, project); TreeClassChooser chooser = TreeClassChooserFactory.getInstance(project) .createWithInnerClassesScopeChooser(TestngBundle.message("testng.config.editor.dialog.title.choose.listener.class"), filter.getScope(), filter, null); chooser.showDialog(); PsiClass psiclass = chooser.getSelected(); if (psiclass == null) { return null; } else { return JavaExecutionUtil.getRuntimeQualifiedName(psiclass); } }