void (@NotNull PsiParameter parameter, @Nullable PsiMethod declarationMethod) { if (!myRefCountHolder.isReferenced(parameter) && !UnusedSymbolUtil.isImplicitUsage(myProject, parameter)) { message = JavaErrorBundle.message(parameter instanceof PsiPatternVariable ? "pattern.variable.is.not.used" : "parameter.is.not.used", parameter.getName()); if (declarationMethod != null) { IntentionAction assignFix = QuickFixFactory.getInstance().createAssignFieldFromParameterFix(); IntentionAction createFieldFix = QuickFixFactory.getInstance().createCreateFieldFromParameterFix(); if (!declarationMethod.isConstructor()) { assignFix = PriorityIntentionActionWrapper.lowPriority(assignFix); createFieldFix = PriorityIntentionActionWrapper.lowPriority(createFieldFix); } quickFixOptions.add(assignFix); quickFixOptions.add(createFieldFix); } } }