void (@NotNull JTable table) { JScrollPane scrollPane = ComponentUtil.getParentOfType((Class<? extends JScrollPane>)JScrollPane.class, (Component)table); if (scrollPane != null) { scrollPane.revalidate(); scrollPane.repaint(); } }