Exclude method calls in Scala