protected function getSuggestedFieldNames(OutputTypeInterface $type, string $fieldName): array
    {
        if (!($type instanceof ObjectType || $type instanceof InterfaceType)) {
            // Otherwise, must be a Union type, which does not define fields.
            return [];
        }

        $possibleFieldNames = \array_keys($type->getFields());

        return suggestionList($fieldName, $possibleFieldNames);
    }