private static @NotNull QuickFix<?> @Nullable [] getFixes(@NotNull CommonProblemDescriptor descriptor,
                                                            @Nullable RefEntity entity,
                                                            @NotNull InspectionToolPresentation presentation,
                                                            @Nullable List<String> hints) {
    List<QuickFix<?>> fixes = new ArrayList<>(hints == null ? 1 : hints.size());
    if (hints == null) {
      addFix(descriptor, entity, fixes, null, presentation);
    }
    else {
      for (String hint : hints) {
        addFix(descriptor, entity, fixes, hint, presentation);
      }
    }
    return fixes.isEmpty() ? null : fixes.toArray(QuickFix.EMPTY_ARRAY);
  }
private static @NotNull QuickFix<?> @Nullable [] getFixes(@NotNull CommonProblemDescriptor descriptor,
                                                            @Nullable RefEntity entity,
                                                            @NotNull InspectionToolPresentation presentation,
                                                            @Nullable List<String> hints)