private LocalQuickFix @NotNull [] createAndInitFixes(Object[] infos) {
    final LocalQuickFix[] fixes = createFixes(infos);
    for (LocalQuickFix fix : fixes) {
      if (fix instanceof InspectionGadgetsFix igFix) {
        igFix.setOnTheFly(onTheFly);
      }
    }
    return fixes;
  }
private LocalQuickFix @NotNull [] createAndInitFixes(Object[] infos)