boolean (@NotNull JTable table, int row) { Rectangle visibleRect = table.getVisibleRect(); int start = getLeadingRow(table, visibleRect); int end = getTrailingRow(table, visibleRect); return row >= start && row <= end; }