@NotNull
  private static HighlightInfo.Builder createNotApplicableTargetInfo(@NotNull PsiAnnotation annotation,
                                                                     PsiJavaCodeReferenceElement nameRef,
                                                                     PsiAnnotation.TargetType[] targets) {
    String target = JavaAnalysisBundle.message("annotation.target." + targets[0]);
    String message = JavaErrorBundle.message("annotation.not.applicable", nameRef.getText(), target);
    HighlightInfo.Builder info = createAnnotationError(annotation, message);
    if (BaseIntentionAction.canModify(Objects.requireNonNull(annotation.resolveAnnotationType()))) {
      for (PsiAnnotation.TargetType targetType : targets) {
        IntentionAction action = QuickFixFactory.getInstance().createAddAnnotationTargetFix(annotation, targetType);
        info.registerFix(action, null, null, null, null);
      }
    }
    return info;
  }
@NotNull
  private static HighlightInfo.Builder createNotApplicableTargetInfo(@NotNull PsiAnnotation annotation,
                                                                     PsiJavaCodeReferenceElement nameRef,
                                                                     PsiAnnotation.TargetType[] targets)