boolean (@NotNull MouseEvent e) { if (myPackageManagementService != null && myInstallButton.isEnabled()) { ManagePackagesDialog dialog = createManagePackagesDialog(); Point p = e.getPoint(); int row = myPackagesTable.rowAtPoint(p); int column = myPackagesTable.columnAtPoint(p); if (row >= 0 && column >= 0) { Object pkg = myPackagesTable.getValueAt(row, 0); if (pkg instanceof InstalledPackage) { dialog.selectPackage((InstalledPackage) pkg); } } dialog.show(); return true; } return false; }