@NotNull private InspectionGadgetsFix[] createFixes(Object... infos) { if (!onTheFly && inspection.buildQuickFixesOnlyForOnTheFlyErrors()) { return InspectionGadgetsFix.EMPTY_ARRAY; } final InspectionGadgetsFix[] fixes = inspection.buildFixes(infos); if (fixes.length > 0) { return fixes; } final InspectionGadgetsFix fix = inspection.buildFix(infos); if (fix == null) { return InspectionGadgetsFix.EMPTY_ARRAY; } return new InspectionGadgetsFix[] {fix}; }