docs: ImmutableList<AnnotationMirror> annotationsToCopy(
        Element autoValueType, Element typeOrMethod, Set<String> excludedAnnotations) {
      ImmutableList.Builder<AnnotationMirror> result = ImmutableList.builder();
      for (AnnotationMirror annotation : typeOrMethod.getAnnotationMirrors()) {
        String annotationFqName = getAnnotationFqName(annotation);
        // To be included, the annotation should not be in com.google.auto.value,
        // and it should not be in the excludedAnnotations set.
        if (!isInAutoValuePackage(annotationFqName)
            && !excludedAnnotations.contains(annotationFqName)
            && annotationVisibleFrom(annotation, autoValueType)) {
          result.add(annotation);
        }
      }
  
      return result.build();
    }