JavaCompatible.scala based on explicit type specification in function name