boolean (@NotNull PsiMethod psiMethod) { String methodName = psiMethod.getName(); PsiClass psiClass = psiMethod.getContainingClass(); if (psiMethod.getAnnotation(ORG_JUNIT_JUPITER_PARAMS_PROVIDER_METHOD_SOURCE) != null) return false; if (psiMethod.getParameterList().getParametersCount() != 0) return false; if (!TestUtils.isInTestSourceContent(psiClass)) return false; if (psiMethod.hasAnnotation(KOTLIN_JVM_STATIC)) { PsiElement parent = psiClass.getParent(); if (parent instanceof PsiClass) psiClass = (PsiClass)parent; } return ContainerUtil.exists(psiClass.findMethodsByName(methodName, false), it -> psiMethod != it && MetaAnnotationUtil.isMetaAnnotated(it, Collections.singleton( ORG_JUNIT_JUPITER_PARAMS_PROVIDER_METHOD_SOURCE)) && MetaAnnotationUtil.isMetaAnnotated(it, Collections.singleton( ORG_JUNIT_JUPITER_PARAMS_PARAMETERIZED_TEST))); }