IntentionPreviewInfo (ActionContext context, PsiErrorElement element) { MemberInfo info = createMember(context.file(), element); if (info == null || !(info.member() instanceof PsiNamedElement member)) return IntentionPreviewInfo.EMPTY; PsiClass psiClass = getPsiClass(context.file(), info.member()); if (psiClass == null) return IntentionPreviewInfo.EMPTY; return IntentionPreviewInfo.movePsi(member, psiClass); }