boolean (PsiClass containingClass, PsiMethod method) { if (containingClass == null) return false; TestFramework framework = TestFrameworks.detectFramework(containingClass); return framework != null && framework.isTestMethod(method, false); }