void (PsiElement parent, @NotNull QuickFixActionRegistrar registrar) { PsiVariable variable = ObjectUtils.tryCast(parent, PsiVariable.class); if (variable == null) return; PsiType type = inferType(variable); if (type == null) return; registrar.register(PriorityIntentionActionWrapper.highPriority(QuickFixFactory.getInstance().createSetVariableTypeFix(variable, type))); }