title: PSALM: Docblock-defined class or interface does not exist
body: <p>I have the following code:</p>
  <pre><code>namespace Some\Space\Utility;
  
  use Doctrine\Common\Collections\ArrayCollection;
  use Doctrine\Common\Collections\Collection;
  
  /**
   * @psalm-template T
   */
  class SomeAdapter
  {
      /**
       * Some method
       *
       * @psalm-param iterable&lt;int, T&gt; $data
       *
       * @psalm-return Collection&lt;int, T&gt;
       */
      public static function doSomething($data): Collection
      {
          if (is_array($data)) {
              $data = new ArrayCollection($data);
          }
  
          return $data;
      }
  }
  </code></pre>
  <p>Probably I miss something but I got the following error for <code>@psalm-param</code>:</p>
  <blockquote>
  <p>psalm: UndefinedDocblockClass: Docblock-defined class or interface Some\Space\Utility\T does not exist</p>
  </blockquote>