TestFramework (PsiClass psiClass) { if (psiClass != null) { ConfigurationType configurationType = getConfigurationType(); Set<TestFramework> frameworks = TestFrameworks.detectApplicableFrameworks(psiClass); TestFramework testFramework = ContainerUtil.find(frameworks, framework -> isConfigurationType(framework, configurationType)); return testFramework; } return null; }