Can you add a method to this trait `def isScala: Boolean`, and predicate the behaviour of `decodedName` on that? 

I think the correct way to find out  is to find the enclosing top level class and check if it has the 'ScalaSignature' or `ScalaLongSignature` annotation.