all-of-type EG: @AllOfType object Foo { val x: String = "ASDAS" val y = "ASDAS" val all: Seq[String] = AllOfType.derive } Will result in the all value being implemented as Seq(x, y). Use in your project Probably the best way: Copy and paste. Modify to suite your needs.