I got a VirtualFile from `VirtualFileManager.getInstance().findFileByUrl` so I can have a PsiFile like this:
val psi: PsiFile? = PsiManager.getInstance(event.project!!).findFile(file!!)
The file looks like this:
* @package Zend Framework
* @author Rtransat
'factories' => [
Model\Infrastructure\Api\Adapter::class => Model\Infrastructure\Api\AdapterFactory::class,
I would like to add a line in the php array in the factories index, but I really don't know how to parse the PsiElement (even with the PsiViewer plugin) to add the line.