Method scanClassNames extended.