OK, I see the ModelLegacy has same code: https://github.com/elinw/joomla-cms/blob/7a97a93e9e68ab6b487e53dde29e1eef5f8548d9/libraries/legacy/model/legacy.php#L258

Maybe this is not a problem, please ignore my post.