internal static List <BepInProcess> FromCecilType(TypeDefinition td) { var attrs = MetadataHelper.GetCustomAttributes <BepInProcess>(td, true); return(attrs.Select(customAttribute => new BepInProcess((string)customAttribute.ConstructorArguments[0].Value)).ToList()); }