void () { for (NavBarItem item : new ArrayList<>(myList)) { item.update(); } if (UISettings.getInstance().getShowNavigationBar()) { MyNavBarWrapperPanel wrapperPanel = ComponentUtil .getParentOfType((Class<? extends MyNavBarWrapperPanel>)MyNavBarWrapperPanel.class, (Component)this); if (wrapperPanel != null) { wrapperPanel.revalidate(); wrapperPanel.repaint(); } } }