I am working over plugin for intellij idea and the plugin keeps some files in it's own directory like ~/.plugin/ . The plugin needs to open some files from the directory in text editor, but the existing solutin I found like
val project = ProjectManager.getInstance().openProjects
val textEditor: Editor? = FileEditorManager.getInstance(project).openTextEditor(
OpenFileDescriptor(project, node.file, 0),
doesn't work. Probably because virtual files out of project. So my question is what the propery way to open such kind of external files?