IntentionPreviewInfo (@NotNull Project project, @NotNull ProblemDescriptor previewDescriptor) { RefactoringActionHandler handler = getHandler(); if (handler instanceof PreviewableRefactoringActionHandler previewableHandler) { PsiElement element = getElementToRefactor(previewDescriptor.getPsiElement()); return previewableHandler.generatePreview(project, element); } return IntentionPreviewInfo.EMPTY; }