protected boolean isAutoScrollMode() {
   return myShouldAutoScroll
       && !myProject.isDisposed()
       && ((StructureViewFactoryImpl) StructureViewFactory.getInstance(myProject))
           .getState()
           .AUTOSCROLL_MODE;
 }
 protected void setAutoScrollMode(boolean state) {
   StructureViewFactoryImpl structureViewFactory =
       (StructureViewFactoryImpl) StructureViewFactory.getInstance(myProject);
   structureViewFactory.getState().AUTOSCROLL_FROM_SOURCE = state;
   final FileEditor[] selectedEditors =
       FileEditorManager.getInstance(myProject).getSelectedEditors();
   if (selectedEditors.length > 0 && state) {
     scrollToSelectedElement();
   }
 }
 protected boolean isAutoScrollMode() {
   StructureViewFactoryImpl structureViewFactory =
       (StructureViewFactoryImpl) StructureViewFactory.getInstance(myProject);
   return structureViewFactory.getState().AUTOSCROLL_FROM_SOURCE;
 }
 protected void setAutoScrollMode(boolean state) {
   ((StructureViewFactoryImpl) StructureViewFactory.getInstance(myProject))
           .getState()
           .AUTOSCROLL_MODE =
       state;
 }