protected function loadKeysIfNotLoaded()
    {
        if (!$this->keyProvider || $this->keysLoaded) {
            return;
        }

        $this->keysLoaded = true;

        foreach (call_user_func($this->keyProvider) as $key=>$xType) {
            $this->namedTypes[$key] = $xType;
        }
    }