private function checkClassHasValidSuffix($className, $classSuffix = null)
    {
        if ($classSuffix === '*') {
            return true;
        }
        $classSuffixPos = strrpos($className, $classSuffix);
        return $classSuffixPos === (strlen($className) - strlen($classSuffix));
    }