protected function validateExtensions()
    {
        $data = $this->configuration;

        if (!isset($data['extensions'])) {
            array_push($this->messages, ['error', trans('Unable to read php extensions. It is recommended to contact with your provider.')]);
            return $this;
        }
        if (empty(self::$importantExtensions)) {
            return $this;
        }
        $extensions = $data['extensions'];
        foreach (self::$importantExtensions as $extension) {
            if (!in_array($extension, $extensions)) {
                array_push($this->messages, ['warning', sprintf('Unable to find %s php extension. Please install extension on your server otherwise system may work not properly.', $extension)]);
            }
        }
        return $this;
    }