Scala: use visibility