When trying to access the index for my plugin for Elixir, a user is getting the following exception:
unable to get stub builder for com.jetbrains.jsonSchema.JsonSchemaFileType@64d1b74, path = /Volumes/Dev/elixir/busiket/node_modules/phoenix/package.json, stubBindingRoot = JsonFileImpl, languages = [JSON], filesTypes = [JSON Schema], files = [JsonFileImpl], roots = 
The line in my plugin that triggers that is
Collection<NamedElement> indexedNameNamedElementCollection = StubIndex.getElements(
So, I have no control over the StubIndex seeing JSON nodes, but I also don't expect it to since it should be only seeing ElixirFiles and their nodes.. How do I avoid this exception? Do I need to change how I construct the index?
Original issue is https://github.com/KronicDeth/intellij-elixir/issues/491