@Override
  public @NotNull IntentionPreviewInfo generatePreview(@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) {
    PsiNameValuePair nameValuePair = getNameValuePair();
    List<PsiClass> classes = filterTargetClasses(nameValuePair, project);
    if (nameValuePair == null || classes.isEmpty()) return IntentionPreviewInfo.EMPTY;
    final PsiType type = getAnnotationValueType(nameValuePair.getValue());
    PsiClass targetClass = classes.get(0);
    String methodName = ObjectUtils.notNull(nameValuePair.getName(), PsiAnnotation.DEFAULT_REFERENCED_METHOD_NAME);
    return new IntentionPreviewInfo.CustomDiff(JavaFileType.INSTANCE, targetClass.getName(), "",
                                               Objects.requireNonNull(type).getPresentableText() + " " + methodName + "();");
  }
@Override
  public @NotNull IntentionPreviewInfo generatePreview(@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file)