void (@NotNull HighlightInfoHolder holder, @NotNull PsiIdentifier identifier) { PsiElement parent = identifier.getParent(); if (parent == null) return; if ((parent instanceof PsiVariable || parent instanceof PsiMember) && SuppressionUtil.inspectionResultSuppressed(identifier, myUnusedSymbolInspection)) return; if (parent instanceof PsiParameter && SuppressionUtil.isSuppressed(identifier, UnusedSymbolLocalInspectionBase.UNUSED_PARAMETERS_SHORT_NAME)) return; parent.accept(this); if (message != null) { HighlightInfo.Builder builder = UnusedSymbolUtil.createUnusedSymbolInfoBuilder(identifier, message, myDeadCodeInfoType, UnusedDeclarationInspectionBase.SHORT_NAME); for (IntentionAction fix : quickFixes) { TextRange fixRange = parent instanceof PsiField ? HighlightMethodUtil.getFixRange(parent) : null; builder.registerFix(fix, null, HighlightDisplayKey.getDisplayNameByKey(myDeadCodeKey), fixRange, myDeadCodeKey); } for (IntentionAction fix : quickFixOptions) { TextRange fixRange = parent instanceof PsiField ? HighlightMethodUtil.getFixRange(parent) : null; builder.registerFix(fix, null, HighlightDisplayKey.getDisplayNameByKey(myDeadCodeKey), fixRange, null); } addInfo(holder, builder); message = null; quickFixes.clear(); quickFixOptions.clear(); } else { assert quickFixes.isEmpty(); assert quickFixOptions.isEmpty(); } }