src/SourceLocator/Type/AbstractSourceLocator.php
public function locateIdentifier(Reflector $reflector, Identifier $identifier) : ?Reflection
    {
        $locatedSource = $this->createLocatedSource($identifier);

        if (! $locatedSource) {
            return null;
        }

        try {
            return $this->astLocator->findReflection($reflector, $locatedSource, $identifier);
        } catch (IdentifierNotFound $exception) {
            return null;
        }
    }
public function locateIdentifier(Reflector $reflector, Identifier $identifier) : ?Reflection
    {
        $locatedSource = $this->createLocatedSource($identifier);

        if (! $locatedSource) {
            return null;
        }

        try {
            return $this->astLocator->findReflection($reflector, $locatedSource, $identifier);
        } catch (IdentifierNotFound $exception) {
            return null;
        }
    }
{@inheritDoc}

@throws ParseToAstFailure