IntentionAction (@NotNull PsiParameter parameter, boolean excludingHierarchy) { if (excludingHierarchy) { InspectionToolWrapper<?, ?> toolWrapper = Objects.requireNonNull(InspectionProfileManager.getInstance(parameter.getProject()) .getCurrentProfile().getInspectionTool("unused", parameter)); InspectionProfileEntry tool = toolWrapper.getTool(); return new UpdateInspectionOptionFix(tool, "members.myCheckParameterExcludingHierarchy", JavaErrorBundle.message("parameter.excluding.hierarchy.disable.text"), false).asIntention(); } else { return new SafeDeleteFix(parameter); } }