StructureView (final FileEditor fileEditor, final @NotNull Project project) { return new StructureViewComponent(fileEditor, createStructureViewModel(fileEditor instanceof TextEditor ? ((TextEditor)fileEditor).getEditor() : null), project, true); }