public static List<String> getStringArrayValue(@NotNull PsiAnnotation annotation, @NlsSafe @NotNull String attributeName, boolean declared) {
    PsiAnnotationMemberValue value = findDetachedAttributeValue(annotation, attributeName, declared);
    if (value == null) return Collections.emptyList();
    return getArrayValue(value, AnnotationUtil::getStringAttributeValue);
  }
public static List<String> getStringArrayValue(@NotNull PsiAnnotation annotation, @NlsSafe @NotNull String attributeName, boolean declared)