void (@Nullable HighlightInfo.Builder info, @NotNull PsiElement refElement, @NotNull PsiJavaCodeReferenceElement place) { if (place instanceof PsiReferenceExpression && place.getParent() instanceof PsiMethodCallExpression) { ReplaceGetClassWithClassLiteralFix.registerFix((PsiMethodCallExpression)place.getParent(), info); } if (refElement instanceof PsiJvmModifiersOwner) { List<IntentionAction> fixes = JvmElementActionFactories.createModifierActions((PsiJvmModifiersOwner)refElement, MemberRequestsKt.modifierRequest(JvmModifier.STATIC, true)); QuickFixAction.registerQuickFixActions(info, null, fixes); } // make context non-static PsiModifierListOwner staticParent = PsiUtil.getEnclosingStaticElement(place, null); if (staticParent != null && isInstanceReference(place)) { IntentionAction action = QuickFixFactory.getInstance().createModifierListFix(staticParent, PsiModifier.STATIC, false, false); if (info != null) { info.registerFix(action, null, null, null, null); } } if (place instanceof PsiReferenceExpression && refElement instanceof PsiField) { IntentionAction action = QuickFixFactory.getInstance().createCreateFieldFromUsageFix((PsiReferenceExpression)place); if (info != null) { info.registerFix(action, null, null, null, null); } } }