public function isClassFromFile($className, $file)
    {
        $realFile = $this->getFileDeclaringClass($className);

        if ($file === $realFile) {
            return true;
        }

        return $realFile;
    }