boolean (PsiClass psiClass) { if (psiClass.getQualifiedName() == null) return false; if (!PsiClassUtil.isRunnableClass(psiClass, true, true)) return false; if (AnnotationUtil.isAnnotated(psiClass, JUnitUtil.RUN_WITH, CHECK_HIERARCHY)) return true; if (JUnitUtil.isTestCaseInheritor(psiClass)) return true; for (final PsiMethod method : psiClass.getAllMethods()) { if (JUnitUtil.isSuiteMethod(method)) return true; if (JUnitUtil.isTestAnnotated(method)) return true; } return false; }