private static @Nullable ProblemDescriptor registerProblem(@NotNull InspectionManager manager,
                                                             @NotNull UParameter parameter,
                                                             Object value,
                                                             boolean suggestFix) {
    final String name = parameter.getName();
    if (name == null || name.isEmpty()) return null;
    String presentableText;
    String canonicalText;
    if (value instanceof RefParameterImpl.ConstValue constValue) {
      presentableText = constValue.presentableText();
      canonicalText = constValue.canonicalText();
    }
    else {
      canonicalText = presentableText = (value instanceof Iterable it) ? Strings.join(it, ", ") : String.valueOf(value);
    }
    PsiElement anchor = ObjectUtils.notNull(UDeclarationKt.getAnchorPsi(parameter), parameter);
    if (!anchor.isPhysical()) return null;
    return manager.createProblemDescriptor(anchor,
                                           JavaBundle.message("inspection.same.parameter.problem.descriptor", presentableText),
                                           suggestFix ? new InlineParameterValueFix(name, canonicalText) : null,
                                           ProblemHighlightType.GENERIC_ERROR_OR_WARNING, false);
  }
private static @Nullable ProblemDescriptor registerProblem(@NotNull InspectionManager manager,
                                                             @NotNull UParameter parameter,
                                                             Object value,
                                                             boolean suggestFix)