Editor (@NotNull final PsiFile file) { final Project project = file.getProject(); final VirtualFile virtualFile = file.getVirtualFile(); LOG.assertTrue(virtualFile != null); final OpenFileDescriptor fileDescriptor = new OpenFileDescriptor(project, virtualFile); return FileEditorManager.getInstance(project).openTextEditor(fileDescriptor, false); }