PsiClass (final PsiClass psiClass) { Module module = ModuleUtilCore.findModuleForPsiElement(psiClass); if (module == null) return null; GlobalSearchScope scope = GlobalSearchScope.moduleRuntimeScope(module, true); return getTestCaseClassOrNull(scope, module.getProject()); }