private static TypeDefinition InnerResolveType(this TypeReference reference) { try { return reference.Resolve(); } catch (Exception exception) { throw new Exception($"Could not resolve '{reference.FullName}'.", exception); } } }