private function getClassForInterface(string $interfaceName)
    {
        $implementationName = '';
        if (strtolower(substr($interfaceName, -9)) === 'interface') {
            $implementationName = substr($interfaceName, 0, -9);
        }

        if (!class_exists($implementationName)) {
            throw NoImplementationForInterfaceException::exceptionWithInterfaceName($interfaceName);
        }

        return $implementationName;
    }