/**
  * @param string $definition
  * @param int $pos
  * @param ReflectionElement $reflectionElement
  * @return ReflectionClass
  */
 private function resolveContextForSelfProperty($definition, $pos, ReflectionElement $reflectionElement)
 {
     $class = $this->getClass(substr($definition, 0, $pos), $reflectionElement->getNamespaceName());
     if ($class === NULL) {
         $fqnName = Resolver::resolveClassFqn(substr($definition, 0, $pos), $reflectionElement->getNamespaceAliases(), $reflectionElement->getNamespaceName());
         $class = $this->getClass($fqnName);
     }
     return $class;
 }