String () { TestClassFilter filter; Module module = editor.getModuleSelector().getModule(); if (module == null) { filter = new TestClassFilter(GlobalSearchScope.projectScope(getProject()), getProject(), false); } else { filter = new TestClassFilter(GlobalSearchScope.moduleScope(module), getProject(), false); } PsiClass[] classes = TestNGUtil.getAllTestClasses(filter, true); if(classes == null || classes.length == 0) { Messages.showMessageDialog(getField(), TestngBundle.message("testng.group.browser.no.tests.found.in.project"), TestngBundle.message("testng.group.browser.cannot.browse.groups"), Messages.getInformationIcon()); return null; } else { return GroupList.showDialog(classes, getField()); } }