@Nullable
  private static PsiAnnotationMemberValue findDetachedAttributeValue(@NotNull PsiAnnotation annotation,
                                                                     @NlsSafe @Nullable String attributeName,
                                                                     boolean declared) {
    PsiAnnotationMemberValue declaredValue = findDeclaredDetachedValue(annotation, attributeName);
    if (declaredValue != null) return declaredValue;
    if (declared) return null;
    return annotation.findAttributeValue(attributeName);
  }
@Nullable
  private static PsiAnnotationMemberValue findDetachedAttributeValue(@NotNull PsiAnnotation annotation,
                                                                     @NlsSafe @Nullable String attributeName,
                                                                     boolean declared)