[Resolver] Refactored method to create ClassType/InterfaceType instances out of DClassLike nodes