code: private function findThemeByDirectory($directory)
      {
          if (isset($this->themes[$directory])) {
              return $this->themes[$directory];
          }
  
          return null;
      }
docs: Find a theme from all scanned themes
  
  @param string $directory
  @return null|ThemeInfo