private function getClassParentsAndInterfaces()
    {
        $phpcsFile = $this->phpcsFile;
        $tokens = $phpcsFile->getTokens();
        $nsStart = $phpcsFile->findNext(array(T_NAMESPACE), 0);
        $class = '';

        // Set the default return value.
        $this->parentsAndInterfaces = false;

        // Build the namespace.
        if (false !== $nsStart) {
            $nsEnd = $phpcsFile->findNext(array(T_SEMICOLON), $nsStart + 2);
            for ($i = $nsStart + 2; $i < $nsEnd; $i++) {
                $class .= $tokens[$i]['content'];
            }
            $class .= '\\';
        } else {
            $nsEnd = 0;
        }

        // Find the class/interface declaration.
        $classPtr = $phpcsFile->findNext(array(T_CLASS, T_INTERFACE), $nsEnd);

        if (false !== $classPtr) {
            $class .= $phpcsFile->getDeclarationName($classPtr);

            if (\class_exists($class) || \interface_exists($class)) {
                $this->parentsAndInterfaces = \array_merge(\class_parents($class), \class_implements($class));
            }
        }

        return $this->parentsAndInterfaces;
    }