boolean (String paneId) { AbstractProjectViewPane pane = getProjectViewPaneById(paneId); if (pane == null || pane != getCurrentProjectViewPane()) return false; ToolWindow toolWindow = ToolWindowManager.getInstance(project).getToolWindow(ToolWindowId.PROJECT_VIEW); if (toolWindow == null || !toolWindow.isVisible()) return false; JTree tree = pane.getTree(); if (tree == null) return false; return !ClientProperty.isTrue(tree, AUTO_SCROLL_FROM_SOURCE_BLOCKED); }