issue #18406: Add used check as static function