void (@NotNull TableModelEvent e) { if (!myRowHeightIsExplicitlySet) { setRowHeightWithScaler(-1); } if (e.getType() == TableModelEvent.DELETE && isEmpty() || e.getType() == TableModelEvent.INSERT && !isEmpty() || e.getType() == TableModelEvent.UPDATE) { UIUtil.repaintViewport(this); } }