package org.jetbrains.plugins.scala.lang.psi.api.base

import org.jetbrains.plugins.scala.lang.psi.types.ScType
import org.jetbrains.plugins.scala.lang.psi.types.result._

/**
  * @author adkozlov
  */
package object types {

  implicit class ScTypeElementExt(private val typeElement: ScTypeElement) extends AnyVal {
    def calcType: ScType = typeElement.`type`().getOrAny
    
    def getParamTypeText: String =
      if (typeElement.isRepeated) s"_root_.scala.collection.Seq[${typeElement.getText}]"
      else                        typeElement.getText
  }
}

package org.jetbrains.plugins.scala.lang.psi.api.base

import org.jetbrains.plugins.scala.lang.psi.types.ScType
import org.jetbrains.plugins.scala.lang.psi.types.result._

/**
  * @author adkozlov
  */
package object types {

  implicit class ScTypeElementExt(private val typeElement: ScTypeElement) extends AnyVal {
    def calcType: ScType = typeElement.`type`().getOrAny

    def getParamTypeText: String =
      if (typeElement.isRepeated) s"_root_.scala.Seq[${typeElement.getText}]"
      else                        typeElement.getText
  }
}

Fix type of vararg parameter type elements (now designates to scala.Seq)
Fix type of vararg parameter type elements (now designates to scala.Seq)
