IntentionPreviewInfo (@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 = Objects.requireNonNull(nameValuePair.getName()); return new IntentionPreviewInfo.CustomDiff(JavaFileType.INSTANCE, targetClass.getName(), "", Objects.requireNonNull(type).getPresentableText() + " " + methodName + "()"); }