// exclude the specified one
for (val iface : type.getInterfaces())
if (!iface.equals(excludedInterface))
interfaces.add(iface);
return interfaces.toArray();
}
/**
* Gets all constructors found in a type. Optionally returns superclass constructors too, rather than just declared ones.
*