public static bool IsInterface(this MetadataType type) => type != null && type.IsInterface.GetValueOrDefault();