And the solution may actually turn out to be really simple. Why not creating before the ``getParamNames`` a ``val isJavaMethod = (sym.isJavaDefined && sym.isMethod)`` ? That should settle it.