boolean (@NotNull final PyClass cls, @NotNull final ThreeState testCaseClassRequired, @Nullable TypeEvalContext context) { if (context == null) { context = TypeEvalContext.codeInsightFallback(cls.getProject()); } if (isTestCaseClassRequired(cls, testCaseClassRequired) && !isUnitTestCaseClass(cls, context)) { return false; } return PythonUnitTestDetectorsKt.isTestClass(cls, context); }