def apply()

in src/main/scala/org/intellij/scala/bundle/Source.scala [18:22]


  def apply(file: File): Source = file.getName match {
    case name if name.endsWith(".zip") | name.endsWith(".jar") => new ZipSource(file)
    case name if name.endsWith(".tar.gz") | name.endsWith(".tgz") => new TarGzSource(file)
    case _ => new DirectorySource(file)
  }