boolean () { ToolWindow window = getToolWindowFor(myProject, SHELF); return window != null && window.isVisible() && ((ChangesViewContentManager)ChangesViewContentManager.getInstance(myProject)).isContentSelected(SHELF); }