void (AnActionEvent e) { if (myVcs == null) return; VirtualFile vf = e.getData(CommonDataKeys.VIRTUAL_FILE); if (vf == null) return; File f = virtualToIoFile(vf); if (!filesEqual(f, myFile)) { setFile(myVcs, f); ToolWindow toolWindow = ToolWindowManager.getInstance(myVcs.getProject()).getToolWindow(ID); if (toolWindow != null) toolWindow.setTitle(f.getName()); } }