void (Component comp, int x, int y) { JTree tree = getRepositoryBrowser().getRepositoryTree(); int row = tree.getRowForLocation(x, y); if (row >= 0) { tree.setSelectionRow(row); } JPopupMenu popupMenu = createPopup(toolWindow); if (popupMenu != null) { popupMenu.show(comp, x, y); } }