code: private function getAllObjectOrInterfaceNodes($type)
      {
          return $type->astNode
              ? ($type->extensionASTNodes
                  ? array_merge([$type->astNode], $type->extensionASTNodes)
                  : [$type->astNode])
              : ($type->extensionASTNodes ?: []);
      }
docs: @param ObjectType|InterfaceType $type
  
  @return ObjectTypeDefinitionNode[]|ObjectTypeExtensionNode[]|InterfaceTypeDefinitionNode[]|InterfaceTypeExtensionNode[]