ScopeViewPane () { ProjectView view = ProjectView.getInstance(myProject); Object pane = view == null ? null : view.getProjectViewPaneById(ScopeViewPane.ID); return pane instanceof ScopeViewPane ? (ScopeViewPane)pane : null; }