FileEditor (@NotNull Project project, @NotNull VirtualFile file) { TextEditor editor = (TextEditor)TextEditorProvider.getInstance().createEditor(project, file); return new TextEditorWithPreview(editor, new RestPreviewFileEditor(file, project)); }