void (@NotNull PsiForStatement statement, boolean isSetAll) { String message = JavaBundle.message("inspection.explicit.array.filling.description", isSetAll ? "setAll" : "fill"); ReplaceWithArraysCallFix fix = new ReplaceWithArraysCallFix(!isSetAll); ProblemHighlightType type = ProblemHighlightType.WARNING; if (isSetAll && !mySuggestSetAll) { if (!isOnTheFly) return; type = ProblemHighlightType.INFORMATION; } TextRange range = getRange(statement, type); if (isSetAll && mySuggestSetAll && isOnTheFly) { var disableForSetAllFix = new UpdateInspectionOptionFix(ExplicitArrayFillingInspection.this, "mySuggestSetAll", JavaBundle.message("inspection.explicit.array.filling.no.suggestion.for.set.all"), false); holder.problem(statement, message).highlight(type).range(range).fix(fix).fix(disableForSetAllFix).register(); return; } holder.registerProblem(statement, message, type, range, fix); }