FileEditorComposite (@NotNull EditorWindow window, @NotNull VirtualFile file, @NotNull FileEditorOpenOptions options) { LightEditService.getInstance().openFile(file); FileEditorWithProvider data = getSelectedEditorWithProvider(file); return data == null ? FileEditorComposite.Companion.getEMPTY() : new FileEditorComposite() { @Override public @NotNull List<FileEditor> getAllEditors() { return List.of(data.getFileEditor()); } @Override public @NotNull List<FileEditorProvider> getAllProviders() { return List.of(data.getProvider()); } @Override public boolean isPreview() { return false; } }; }