JvmAnnotationAttribute (PsiJavaToken token) { PsiAnnotation psiAnnotation = PsiTreeUtil.getParentOfType(token, PsiAnnotation.class, true, PsiMethod.class); if (psiAnnotation == null) return null; String annotationName = psiAnnotation.getQualifiedName(); if (annotationName == null) return null; boolean match = ContainerUtil.exists(SOURCE_ANNOTATIONS, anno -> annotationName.equals(anno)); if (!match) return null; PsiElement annotationContext = psiAnnotation.getContext(); if (annotationContext == null) return null; PsiElement parent = annotationContext.getParent(); if (parent instanceof PsiModifierListOwner) { boolean isMetaAnnotated = MetaAnnotationUtil.isMetaAnnotated((PsiModifierListOwner)parent, Collections.singleton(ORG_JUNIT_JUPITER_PARAMS_PARAMETERIZED_TEST)); if (!isMetaAnnotated) return null; return ContainerUtil.getFirstItem(psiAnnotation.getAttributes()); } return null; }