boolean (PsiClass eachClass, PsiClass klass) { final TestFrameworks frameworks = TestFrameworks.getInstance(); return eachClass.isPhysical() && (frameworks.isTestClass(eachClass) || eachClass != klass && frameworks.isPotentialTestClass(eachClass)); }