src/SourceLocator/Type/AbstractSourceLocator.php
final public function locateIdentifiersByType(Reflector $reflector, IdentifierType $identifierType) : array
    {
        $locatedSource = $this->createLocatedSource(new Identifier(Identifier::WILDCARD, $identifierType));

        if (! $locatedSource) {
            return [];
        }

        return $this->astLocator->findReflectionsOfType(
            $reflector,
            $locatedSource,
            $identifierType
        );
    }
final public function locateIdentifiersByType(Reflector $reflector, IdentifierType $identifierType) : array
    {
        $locatedSource = $this->createLocatedSource(new Identifier(Identifier::WILDCARD, $identifierType));

        if (! $locatedSource) {
            return [];
        }

        return $this->astLocator->findReflectionsOfType(
            $reflector,
            $locatedSource,
            $identifierType
        );
    }
{@inheritDoc}

@throws ParseToAstFailure