Getting multiple local styles with the same name

I request to get a file using https://api.figma.com/v1/files/${fileId}. I then request to get the styles: https://api.figma.com/v1/files/${fileId}/nodes/?ids=${styleNodes}.

However, in response to the nodes API request, I noticed multiple styles returned with the same name. In my case, I get many text styles with the same name. If I look at the Figma file, I only see the text style in question listed once. Although the names are duplicated, the details, such as line-height, are different.

Any ideas on why I would get multiple local styles with the same name?

I know what’s going on. The “duplicate” styles are coming from other files. I see one of the styles with the remote attribute set to false and all the other ones set to true.

Is there a way to determine how/where the duplicate styles are referenced?