List<Icon> (Icon icon) { icon.paintIcon(new JLabel(), createMockGraphics(), 0, 0); // force to eval TimeoutUtil.sleep(1000); // give chance to evaluate UIUtil.dispatchAllInvocationEvents(); UIUtil.dispatchAllInvocationEvents(); return autopsyIconsFrom(icon); }