IntentionPreviewInfo (@NotNull Project project, @NotNull ProblemDescriptor previewDescriptor) { final PsiClass psiClass = PsiTreeUtil.getParentOfType(previewDescriptor.getPsiElement(), PsiClass.class); if (psiClass == null) return IntentionPreviewInfo.EMPTY; doFix(project, psiClass); return IntentionPreviewInfo.DIFF; }