issue #18406: Add used check as static function
Merge pull request #30 from jrogelstad/18406

issue #18406: Add used check as static function