IntentionPreviewInfo (@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) { PsiFile psiFile = getFile(); PsiFile originalFile = IntentionPreviewUtils.getOriginalFile(file); if (originalFile != psiFile) { return myFix.generatePreview(project, myDescriptor); } ProblemDescriptor descriptorForPreview; try { descriptorForPreview = myDescriptor.getDescriptorForPreview(file); } catch (ProcessCanceledException pce) { throw pce; } catch (Exception e) { throw new RuntimeException("Cannot create preview descriptor for quickfix " + myFix.getFamilyName() + " (" + myFix.getClass() + ")", e); } return myFix.generatePreview(project, descriptorForPreview); }