asCodeBasedOrNull