code: public function classesByPath($path)
      {
          $this->typeCheck->classesByPath(func_get_args());
  
          if ($this->isolator->is_dir($path)) {
              return $this->classesByDirectory($path);
          }
  
          return $this->classesByFile($path);
      }
docs: @param string $path
  
  @return array<ClassDefinition>