withWhitelist

Helper method to return a new context based on this context with the given list of classes specifically whitelisted.