String (@NotNull PsiMember member) { List<String> annotations = ConcurrencyAnnotationsManager.getInstance(member.getProject()).getGuardedByAnnotations(); final PsiAnnotation annotation = AnnotationUtil.findAnnotation(member, annotations); if (annotation != null) { return getGuardValue(annotation); } if (member instanceof PsiDocCommentOwner commentOwner) { PsiDocComment comment = commentOwner.getDocComment(); if (comment != null) { PsiDocTag[] tags = comment.getTags(); for (int i = tags.length - 1; i >= 0; i--) { String value = getGuardValue(tags[i]); if (value != null) { return value; } } } } return null; }