public static ProblemDescriptor createProblemDescriptor(@NotNull PsiElement elt,
                                                          @NotNull HighlightInfo info,
                                                          TextRange range,
                                                          @Nullable ProblemGroup problemGroup,
                                                          @NotNull InspectionManager manager) {
    List<LocalQuickFix> fixes = new ArrayList<>();
    info.findRegisteredQuickFix((descriptor, fixRange) -> {
      if (descriptor.getAction() instanceof LocalQuickFix) {
        fixes.add((LocalQuickFix)descriptor.getAction());
      }
      return null;
    });
    ProblemDescriptor descriptor =
      manager.createProblemDescriptor(elt, range, createInspectionMessage(StringUtil.notNullize(info.getDescription())),
                                      HighlightInfo.convertType(info.type), false,
                                      fixes.isEmpty() ? null : fixes.toArray(LocalQuickFix.EMPTY_ARRAY));
    descriptor.setProblemGroup(problemGroup);

    return descriptor;
  }
public static ProblemDescriptor createProblemDescriptor(@NotNull PsiElement elt,
                                                          @NotNull HighlightInfo info,
                                                          TextRange range,
                                                          @Nullable ProblemGroup problemGroup,
                                                          @NotNull InspectionManager manager)