public static void register(@NotNull QuickFixActionRegistrar registrar,
                              @NotNull PsiJavaCodeReferenceElement ref) {
    if (ref instanceof PsiReferenceExpression) {
      if (ref.getParent() instanceof PsiNameValuePair nameValuePair && nameValuePair.getValue() == ref) {
        PsiReference reference = nameValuePair.getReference();
        if (reference != null && reference.resolve() instanceof PsiMethod annotationMethod) {
          PsiType returnType = annotationMethod.getReturnType();
          if (returnType != null) {
            registrar.register(new SurroundWithQuotesAnnotationParameterValueFix((PsiReferenceExpression)ref, returnType).asIntention());
          }
        }
      }
    }
  }
public static void register(@NotNull QuickFixActionRegistrar registrar,
                              @NotNull PsiJavaCodeReferenceElement ref)