void (@NotNull MouseEvent event) { myEditButton.setVisible(myControl.getSelectedModelRows().size() <= 1); Rectangle bounds = getButtonScreenBounds(); if (bounds != null && bounds.contains(event.getLocationOnScreen())) { if (myBeingEdited) { myControl.hideEditor(); myBeingEdited = false; } else { int row = myControl.getRowByRenderer(this); if (row >= 0) { myControl.showEditor(row); myControl.scrollRowToVisible(row); myBeingEdited = true; } } event.consume(); return; } myDelegate.onMouseRelease(event); }