Ugly attempt to distinguish return type, method name and parameters