I would like to add elements to PSI in PhpStorm (class field, php doc comment).
I've seen examples I've tried to bas me on, but the use PsiManager.getElementFactory(), which is missing in my version.
I've also found methods like createMethodFromText(), createFieldFromText() ... but they are all part of Java-langugage classes.
Anyone would have a hint, a sample? :)