Fixes calls to the static `className` method.