void throwIf(bool condition, String message, {Element? element}) { if (condition == true) { throw InvalidGenerationSourceError( message, element: element, ); } }