static void errorIf(bool condition, String err, [int? count, int? length]) { if (condition) { reportError(err); } }