private void registerProblem(@NotNull PsiElement element,
                                   @NotNull @InspectionMessage String message,
                                   @NotNull List<? extends IntentionAction> fixes) {
        // Synthetic elements in JSP like JspHolderMethod may arrive here
        if (element instanceof SyntheticElement) return;
        if (element instanceof PsiNameIdentifierOwner owner) {
          PsiElement identifier = owner.getNameIdentifier();
          if (identifier != null) {
            element = identifier;
          }
        }
        for (UnusedDeclarationFixProvider provider : UnusedDeclarationFixProvider.EP_NAME.getExtensionList()) {
          IntentionAction[] additionalFixes = provider.getQuickFixes(element);
          fixes = ContainerUtil.append(fixes, additionalFixes);
        }
        holder.registerProblem(element, message, ContainerUtil.map2Array(fixes, LocalQuickFix.EMPTY_ARRAY,
                                                                         UnusedSymbolLocalInspection::toLocalQuickFix));
      }
private void registerProblem(@NotNull PsiElement element,
                                   @NotNull @InspectionMessage String message,
                                   @NotNull List<? extends IntentionAction> fixes)