public static bool TypeOrBaseTypeIs(this TypeReference reference, Type type) { return(reference.IsType(type) || reference.BaseTypeIs(type)); }