boolean ( @NotNull TestNGConfiguration configuration, @NotNull ConfigurationContext context, @NotNull PsiElement element ) { KotlinTestFrameworkProvider.JavaEntity javaEntity = TestNgKotlinTestFrameworkProvider.getInstance().getJavaEntity(element); if (javaEntity == null || !hasDetectedTestFramework(javaEntity.getTestClass())) { return false; } return configuration.isConfiguredByElement(javaEntity.getMethod() != null ? javaEntity.getMethod() : javaEntity.getTestClass()); }