boolean (@NotNull T configuration, @NotNull ConfigurationContext context, @NotNull PsiElement element) { PsiClass psiClass = PsiTreeUtil.getParentOfType(element, PsiClass.class); if (psiClass != null && !hasDetectedTestFramework(psiClass)) { return false; } return configuration.isConfiguredByElement(element); }