boolean (PsiClass member) { if (member instanceof PsiTypeParameter) { return false; } if (!member.hasModifierProperty(PsiModifier.STATIC) && member.getContainingClass() != null) { return false; } TestFramework framework = TestFrameworks.detectFramework(member); return framework instanceof JavaTestFramework && framework.isTestClass(member) && !((JavaTestFramework)framework).isSuiteClass(member); }