IntentionPreviewInfo (@NotNull Project project, @NotNull ProblemDescriptor previewDescriptor) { final PsiMethod element = PsiTreeUtil.getParentOfType(previewDescriptor.getPsiElement(), PsiMethod.class); if (element != null) { element.getModifierList().setModifierProperty(PsiModifier.STATIC, true); } return IntentionPreviewInfo.DIFF; }