diff --git a/src/main/java/com/redhat/devtools/intellij/lsp4mp4ij/psi/core/utils/AnnotationUtils.java b/src/main/java/com/redhat/devtools/intellij/lsp4mp4ij/psi/core/utils/AnnotationUtils.java index b91bf605e..99550776f 100644 --- a/src/main/java/com/redhat/devtools/intellij/lsp4mp4ij/psi/core/utils/AnnotationUtils.java +++ b/src/main/java/com/redhat/devtools/intellij/lsp4mp4ij/psi/core/utils/AnnotationUtils.java @@ -176,6 +176,9 @@ public static String getAnnotationMemberValue(PsiAnnotation annotation, String m if (member == null) { return null; } + if (member instanceof PsiEnumConstant) { + return member.getText(); + } if (member instanceof PsiReference reference) { // ex: @Path(MY_CONSTANTS) where MY_CONSTANTS is a Java field. member = reference.resolve();