private void RestartSelenium(SettingsCollection projectSettings, BrowserType browserType)
 {
     if (VersionForBrowserExists(browserType))
     {
         (bool debugModeOn, SettingsCollection browserSettings)settings = GetDebugSettings(projectSettings.GetSubSettings("debugSettings"), browserType);
         if (settings.debugModeOn)
         {
             if (!CheckSelenium(browserType))
             {
                 Studio.CancelScheduledBackgroundTask("start" + GetBrowserTypeString(browserType));
                 Studio.ScheduleBackgroundTask(new StartSeleniumTask(browserType, settings.browserSettings));
             }
         }
     }
 }