Fix intellij warning
Change Signature to use strings
Use signature.getName() instead of signature.toString()

Using .toString() for the function name doesn't work if any of the types
includes illegal characters
Remove Type.getInstance()