void (final SelectInContext context, final boolean requestFocus) { final VirtualFile file = context.getVirtualFile(); Runnable runnable = () -> { ChangesViewContentManager.getInstance(myProject).selectContent(LOCAL_CHANGES); ChangesViewManager.getInstance(myProject).selectFile(file); }; if (requestFocus) { ToolWindow toolWindow = getToolWindowFor(myProject, LOCAL_CHANGES); if (toolWindow != null) toolWindow.activate(runnable); } else { runnable.run(); } }