rs.methodArguments(argtypes),
kindName(sym.location()),
sym.location());
// Don't erase the return type of the instantiated method type
// for Ceylon #1095
owntype = new MethodType(owntype.getParameterTypes(),
sourceLanguage.isCeylon()
&& typeargtypes != null
&& !typeargtypes.isEmpty() ? owntype.getReturnType() : types.erasure(owntype.getReturnType()),
types.erasure(owntype.getThrownTypes()),
syms.methodClass);