public static function instantiate($wysiwyg, array $arguments = [])
    {
        $classes = [$wysiwyg, sprintf('%s\%s', __NAMESPACE__, $wysiwyg)];

        foreach ($classes as $class) {
            if (class_exists($class) && get_parent_class($class) == self::class) {
                return (new \ReflectionClass($class))->newInstanceArgs($arguments);
            }
        }

        throw new \Exception(sprintf(
            'Editor\'s object was not defined in any of these places: "%s".',
            implode('", "', $classes)
        ));
    }
public static function instantiate($wysiwyg, array $arguments = [])
    {
        $classes = [$wysiwyg, sprintf('%s\%s', __NAMESPACE__, $wysiwyg)];

        foreach ($classes as $class) {
            if (class_exists($class) && get_parent_class($class) == self::class) {
                return (new \ReflectionClass($class))->newInstanceArgs($arguments);
            }
        }

        throw new \Exception(sprintf(
            'Editor\'s object was not defined in any of these places: "%s".',
            implode('", "', $classes)
        ));
    }
@param string $wysiwyg
@param array $arguments

@throws \Exception

@return self