public function tryGetSettingsForm(ExtensionContract $extension) : SettingsFormContract {
        $className = $extension->getRootNamespace() . self::$formClassName;

        if( ! class_exists($className) ) {
            throw new InvalidArgumentException('The provided class name [' . $className . '] does not exist.');
        }

        $instance = $this->container->make($className);

        if($instance instanceof SettingsFormContract) {
            return $instance;
        }

        throw new DomainException('The instance of the found class does not implement a valid interface.');
    }