private IType ResolveType(Type underlyingType) { return types.ContainsKey(underlyingType) ? types[underlyingType] : defaultType; }