IntentionPreviewInfo (@NotNull Project project, @NotNull ProblemDescriptor previewDescriptor) { PsiVariable variable = getApparentlyAccessedVariable(project, previewDescriptor.getPsiElement()); NavigatablePsiElement element = ObjectUtils.tryCast(variable, NavigatablePsiElement.class); if (element == null) return IntentionPreviewInfo.EMPTY; return IntentionPreviewInfo.navigate(element); }