boolean (PsiParameter parameter) { PsiElement declarationScope = parameter.getDeclarationScope(); if (declarationScope instanceof PsiMethod method) { PsiAnnotation annotation = method.getModifierList().findAnnotation(ORG_JUNIT_JUPITER_PARAMS_PARAMETERIZED_TEST); if (annotation != null) { PsiAnnotationMemberValue attributeValue = annotation.findDeclaredAttributeValue("name"); if (attributeValue instanceof PsiExpression) { String indexInDisplayName = "{" + method.getParameterList().getParameterIndex(parameter) + "}"; Object value = JavaConstantExpressionEvaluator.computeConstantExpression((PsiExpression)attributeValue, null, false); return indexInDisplayName.equals(value); } } } return false; }