boolean (PsiElement element, boolean checkAbstract) { return element instanceof PsiClass && isTestClass((PsiClass)element, checkAbstract) || element instanceof PsiMethod && isTestMethod((PsiMethod)element, checkAbstract); }