src/SourceLocator/Type/PhpInternalSourceLocator.php
protected function createLocatedSource(Identifier $identifier) : ?LocatedSource
    {
        return $this->getClassSource($identifier) ?? $this->getFunctionSource($identifier);
    }
protected function createLocatedSource(Identifier $identifier) : ?LocatedSource
    {
        return $this->getClassSource($identifier) ?? $this->getFunctionSource($identifier);
    }
{@inheritDoc}

@throws InvalidArgumentException
@throws InvalidFileLocation