void (PsiElement parent, @NotNull QuickFixActionRegistrar registrar) { PsiVariable variable = ObjectUtils.tryCast(parent, PsiVariable.class); if (variable == null) return; PsiParameterList parameterList = ObjectUtils.tryCast(variable.getParent(), PsiParameterList.class); if (parameterList == null) return; PsiLambdaExpression lambdaExpression = ObjectUtils.tryCast(parameterList.getParent(), PsiLambdaExpression.class); if (lambdaExpression == null) return; registrar.register(PriorityIntentionActionWrapper.highPriority( QuickFixFactory.getInstance().createRemoveRedundantLambdaParameterTypesFix(lambdaExpression, JavaBundle.message( "remove.var.keyword.text")))); }