boolean (final PsiMethod method) { if (framework == null) { return false; } if (framework instanceof JavaTestFramework) { return ((JavaTestFramework)framework).isTestMethod(method, myClass); } return framework.isTestMethod(method); }