Valid syntax

I have a CompletionProvider and made it add some completions, but how do I add these completions ad valid syntax?

Right now the default inspection sees my completions and has a fix for it, but I want it to know there is nothing wrong with it and also add go to support.


What is the provider called for doing this?

It is not a custom language I am implementing, it is just a framework.



Sorry, I don't understand what you mean. Perhaps some examples could help.

Sorry for my bad explanation. What I am trying to figure out is how I can mark some syntax as valid.

So I have created an completions which gives me this functionality (added the password field).

But the problem is afterwards when I select it, Intellij shows warnings about it, even though this is valid for the framework.

So my question is, how do I mark this is valid and nothing is wrong with it, and also support for going to the element?


There's no way at the moment to let IDEA/PhpStorm know that a method/field actually exists, but we're working on it. Please vote on the issue to get notified about the progress.