renamed "relatedType" to "resolveType"