Remove the warning by adding 'import scala.language.reflectiveCalls'