public static MethodInfo[] GetMethods(Type type) => (type.IsInterface ? InterfaceQueries.GetMethods(type) : ClassQueries.GetPublicImplementedMethods(type)).ToArray();