@Override public StructureViewBuilder getStructureViewBuilder() { Document document = myComponent.getEditor().getDocument(); VirtualFile file = FileDocumentManager.getInstance().getFile(document); if (file == null || !file.isValid()) return null; return StructureViewBuilder.PROVIDER.getStructureViewBuilder( file.getFileType(), file, myProject); }
/** @see TextEditorComponent#getEditor() */ @NotNull private Editor getActiveEditor() { return myComponent.getEditor(); }