public static bool DerivesFrom <T>(this TypeReference type) => type.BaseTypesInclude(x => x.Is <T>());