Made getTypeMembers static and added example